You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

61 lines
2.2 KiB

<?xml version="1.0" encoding="UTF-8"?>
<project name="MemtextFileConverting" default="help" basedir=".">
<dirname file="${ant.file}" property="moduleCreateBaseDir" />
<property name="BASE_DIR" value="${moduleCreateBaseDir}" />
<property name="version" value="0.9" />
<path id="classpath">
<!--WEB-INF/lib-->
<fileset dir="${WEBAPP}/WEB-INF">
<include name="lib/**/*.jar" />
<include name="classes" />
</fileset>
</path>
<target name="help" description="Bedienung">
<echo message="Setzen Sie im Shell-Environment (SQL_ENV) den Parameter XCUBE_PFAD=$SUPERX_MODULE/xcube; export XCUBE_PFAD" />
<echo message="Dann der Aufruf: " />
<echo message="ant -DMODULE_PATH=$XCUBE_PFAD -DBASE_DIR=. -DWEBAPP=$WEBAPP -DMODULE=xcube all" />
<echo message="So erzeugen Sie dann ein SuperX-Paket:" />
<echo message="ant -DMODULE_PATH=$XCUBE_PFAD -DWEBAPP_DIR=$WEBAPP -DMODULE=xcube dist" />
</target>
<path id="classpath">
<fileset dir="${BASE_DIR}/lib">
<include name="*.jar" />
</fileset>
</path>
<target name="compile">
<delete>
<fileset dir="${BASE_DIR}/build" includes="**/*.class" />
</delete>
<javac srcdir="${BASE_DIR}/src" excludes="de/memtext/fileConverting/TestFileChecker.java"
destdir="${BASE_DIR}/build"
listfiles="false" encoding="UTF-8" debug="yes">
<classpath refid="classpath" />
<compilerarg compiler="org.eclipse.jdt.core.JDTCompilerAdapter" />
</javac>
</target>
<target name="dist" depends="compile">
<jar destfile="${BASE_DIR}/dist/memtextfc_libs/memtextfc.jar" basedir="${BASE_DIR}/build" excludes="">
<manifest>
<!-- Who is building this jar? -->
<attribute name="Built-By" value="Memtext"/>
<!-- Information about the program itself
<attribute name="Implementation-Date" value="${SX_TIMESTAMP}"/>
-->
<attribute name="Implementation-Title" value="Memtext FileConverting"/>
<attribute name="Implementation-Version" value="${version}"/>
</manifest>
</jar>
<copy todir="${BASE_DIR}/dist/memtextfc_libs">
<fileset dir="${BASE_DIR}/lib" includes="*.jar,*.txt"/>
</copy> </target>
</project>