Initial commit
This commit is contained in:
@@ -0,0 +1,52 @@
|
||||
<?xml version="1.0"?>
|
||||
<project name="iwir2wfr-compiler" basedir="." default="dist">
|
||||
|
||||
<condition property="build_dir" value="${env.BUILD_DIR}" else="build">
|
||||
<isset property="${env.BUILD_DIR}"/>
|
||||
</condition>
|
||||
<condition property="dist_dir" value="${env.DIST_DIR}" else="dist">
|
||||
<isset property="${env.DIST_DIR}"/>
|
||||
</condition>
|
||||
|
||||
<path id="my.classpath">
|
||||
<fileset dir="lib" includes="*.jar"/>
|
||||
</path>
|
||||
|
||||
<target name="build">
|
||||
<mkdir dir="${build_dir}/classes"/>
|
||||
<javac srcdir="src"
|
||||
destdir="${build_dir}/classes"
|
||||
debug="on"
|
||||
classpathref="my.classpath"
|
||||
includeantruntime="false"/>
|
||||
</target>
|
||||
|
||||
<target name="dist" depends="build">
|
||||
<mkdir dir="${dist_dir}"/>
|
||||
<copy todir="${dist_dir}">
|
||||
<fileset dir="lib" includes="*.jar"/>
|
||||
<fileset dir="bin" includes="*.sh"/>
|
||||
</copy>
|
||||
<chmod perm="a+x">
|
||||
<fileset dir="${dist_dir}" includes="*.sh"/>
|
||||
</chmod>
|
||||
<path id="dist.classpath">
|
||||
<fileset dir="${dist_dir}" includes="*.jar"/>
|
||||
</path>
|
||||
<manifestclasspath property="jar.classpath" jarfile="${dist_dir}/iwir2wfr.jar">
|
||||
<classpath refid="dist.classpath" />
|
||||
</manifestclasspath>
|
||||
<jar destfile="${dist_dir}/iwir2wfr.jar" basedir="${build_dir}/classes">
|
||||
<manifest>
|
||||
<attribute name="Main-Class" value="at.ac.uibk.iwir2wfr.IWIR2WFRcompiler"/>
|
||||
<attribute name="Class-Path" value="${jar.classpath}"/>
|
||||
</manifest>
|
||||
</jar>
|
||||
</target>
|
||||
|
||||
<target name="clean">
|
||||
<delete dir="${build_dir}"/>
|
||||
<delete dir="${dist_dir}"/>
|
||||
</target>
|
||||
|
||||
</project>
|
||||
Reference in New Issue
Block a user