<project default="install">
<property name="builddir" value="build"/>
<property name="classesdir" value="${builddir}/classes"/>
<property name="target-vm" value="1.7"/>
<property name="owlapi-jars" value="lib/owlapi-osgidistribution-3.5.2.jar lib/guava-18.0.jar lib/trove4j-3.0.3.jar"/>
<property environment="env"/>
<path id="classpath">
<fileset dir="${libdir}">
<include name="*.jar"/>
</fileset>
</path>
<condition property="vm.ok">
</condition>
<echo level="warning">
Java version in use is ${java.version} but should be ${target-vm}.x!
Either adjust the 'target-vm' property in the build.xml or use a compatible JVM.
</echo>
</target>
<target name="clean">
<delete dir="${builddir}"/>
</target>
<mkdir dir="${classesdir}/locality"/>
<javac srcdir="./" destdir="${classesdir}/locality" debug="on">
<classpath refid="classpath"/>
<include name="de/unibremen/informatik/locality/*.java"/>
</javac>
<mkdir dir="${classesdir}"/>
<javac srcdir="./" destdir="${classesdir}" debug="on">
<classpath refid="classpath"/>
<include name="de/unibremen/informatik/*.java"/>
</javac>
</target>
<target name="install" depends="clean,jar,copy-libs,fact,fact-prover">
</target>
<target name="fact">
<mkdir dir="${classesdir}/Fact"/>
<javac srcdir="./" destdir="${classesdir}/Fact" debug="on">
<classpath refid="classpath"/>
<include name="de/unibremen/informatik/Fact/*.java"/>
</javac>
<manifest>
<attribute name="Title" value="OWL Fact"/>
<attribute name="Class-Path" value="${owlapi-jars} lib/${fact-jar}"/>
</manifest>
</jar>
<copy file="lib/native/x86_64/libFaCTPlusPlusJNI.so" todir="/lib/native/x86_64/" failonerror="false" />
</target>
<target name="fact-prover">
<mkdir dir="${classesdir}/FactProver"/>
<javac srcdir="./" destdir="${classesdir}/FactProver" debug="on">
<classpath refid="classpath"/>
<include name="de/unibremen/informatik/FactProver/*.java"/>
</javac>
<manifest>
<attribute name="Title" value="OWL Fact Prover"/>
<attribute name="Class-Path" value="${owlapi-jars} lib/${fact-jar}"/>
</manifest>
</jar>
<copy file="lib/native/x86_64/libFaCTPlusPlusJNI.so" todir="/lib/native/x86_64/" failonerror="false" />
</target>
<target name="java-files" depends="install"/>
<target name="java-libs" depends="copy-libs"/>
<target name="jar" depends="compile">
<manifest>
<attribute name="Title" value="OWL Locality Checker"/>
<attribute name="Class-Path" value="${owlapi-jars}"/>
</manifest>
</jar>
<manifest>
<attribute name="Title" value="OWL2 MNO Parser"/>
<attribute name="Main-Class" value="OWL2Parser"/>
<attribute name="Class-Path" value="${owlapi-jars}"/>
</manifest>
</jar>
</target>
<target name="copy-libs">
<mkdir dir="/lib"/>
<copy todir="/lib/">
<fileset dir="${libdir}" excludes="native"/>
</copy>
</target>
</project>