eclipse Ant Build build.xml

0

I am using apache poi and the poi.jar does not contain the xssf package to work with XSSFWorkbook, this is done with the jar poi-ooxml.jar. In eclipse it works correctly, but when I compile with Ant Build, the functions related to XSSF do not work. I put the following in the build.xml:

<property name="poi-ooxml-39.lib" location="jar/poi-ooxml-3.17.jar" />
<javac srcdir="${src.dir}" destdir="${class.dir}"
        encoding="UTF-8" source="1.7" target="1.7" debug="true"
        debuglevel="lines,source" deprecation="on" includeantruntime="false"
        classpath="${poi.lib}:${jogl.lib}:${gluegen.lib}:${poi-ooxml-39.lib}">
        <compilerarg value="-Xlint:-serial" />
    </javac>

and this in the jar tag

<zipfileset src="jar/poi-ooxml-3.17.jar" includes="org/**/*" />

If I do not do this, the Ant Build directly shows me an error saying that the package does not exist to work with XSSF.

Is it that I am working poorly with the build.xml? How should i do?

Thanks in advance.

    
asked by Juan 24.08.2018 в 13:29
source

0 answers