build.xml revision babe416613c8233075ae9f61a0fc7b2b3be46d99
<project default="install">
<property name="libdir" value="/lib"/>
<property name="builddir" value="build"/>
<property name="classesdir" value="${builddir}/classes"/>
<property name="target-vm" value="1.5"/>
<property environment="env"/>
<path id="classpath">
<fileset dir="${libdir}">
<include name="*.jar"/>
</fileset>
</path>
<target name="clean">
<delete dir="${builddir}"/>
</target>
<target name="compile" depends="owl-api">
<mkdir dir="${classesdir}"/>
<javac srcdir="./" destdir="${classesdir}" debug="on" target="${target-vm}" nowarn="off" source="1.5">
<classpath refid="classpath"/>
<include name="de/unibremen/informatik/*.java"/>
</javac>
<mkdir dir="${classesdir}/locality"/>
<javac srcdir="./" destdir="${classesdir}/locality" debug="on" target="${target-vm}" nowarn="off" source="1.5">
<classpath refid="classpath"/>
<include name="de/unibremen/informatik/locality/*.java"/>
</javac>
</target>
<target name="install" depends="jar,copy-libs,fact,compile">
<copy file="${builddir}/OWL2Parser.jar" todir="../"/>
<copy file="${builddir}/OWLLocality.jar" todir="../"/>
</target>
<target name="fact">
<mkdir dir="${classesdir}/Fact"/>
<mkdir dir="/lib/native/i686"/>
<mkdir dir="/lib/native/x86_64"/>
<get src="http://factplusplus.googlecode.com/files/FaCTpp-OWLAPI-3.2-v1.5.2.jar" dest="${libdir}/FaCTpp-OWLAPI-3.2-v1.5.2.jar"/>
<javac srcdir="./" destdir="${classesdir}/Fact" debug="on" target="${target-vm}" nowarn="off" source="1.5">
<classpath refid="classpath"/>
<include name="de/unibremen/informatik/Fact/*.java"/>
</javac>
<jar basedir="${classesdir}/Fact" destfile="${builddir}/OWLFact.jar">
<manifest>
<attribute name="Title" value="OWL Fact"/>
<attribute name="Built-By" value="${user.name}"/>
<attribute name="Main-Class" value="de.unibremen.informatik.Fact.Fact"/>
<attribute name="Class-Path" value="lib/owl2api-bin.jar lib/FaCTpp-OWLAPI-3.2-v1.5.2.jar lib/org.semanticweb.HermiT.jar"/>
</manifest>
</jar>
<copy file="${builddir}/OWLFact.jar" todir="../"/>
<copy file="lib/native/i686/libFaCTPlusPlusJNI.so" todir="/lib/native/i686/"/>
<copy file="lib/native/x86_64/libFaCTPlusPlusJNI.so" todir="/lib/native/x86_64/"/>
<copy file="${libdir}/FaCTpp-OWLAPI-3.2-v1.5.2.jar" todir="/lib/"/>
</target>
<target name="fact-prover">
<mkdir dir="${classesdir}/FactProver"/>
<mkdir dir="/lib/native/i686"/>
<mkdir dir="/lib/native/x86_64"/>
<get src="http://factplusplus.googlecode.com/files/FaCTpp-OWLAPI-3.2-v1.5.2.jar" dest="${libdir}/FaCTpp-OWLAPI-3.2-v1.5.2.jar"/>
<javac srcdir="./" destdir="${classesdir}/FactProver" debug="on" target="${target-vm}" nowarn="off" source="1.5">
<classpath refid="classpath"/>
<include name="de/unibremen/informatik/FactProver/*.java"/>
</javac>
<jar basedir="${classesdir}/FactProver" destfile="${builddir}/OWLFactProver.jar">
<manifest>
<attribute name="Title" value="OWL Fact Prover"/>
<attribute name="Built-By" value="${user.name}"/>
<attribute name="Main-Class" value="de.unibremen.informatik.FactProver.Prove"/>
<attribute name="Class-Path" value="lib/owl2api-bin.jar lib/FaCTpp-OWLAPI-3.2-v1.5.2.jar lib/org.semanticweb.HermiT.jar"/>
</manifest>
</jar>
<copy file="${builddir}/OWLFactProver.jar" todir="../"/>
<copy file="lib/native/i686/libFaCTPlusPlusJNI.so" todir="/lib/native/i686/"/>
<copy file="lib/native/x86_64/libFaCTPlusPlusJNI.so" todir="/lib/native/x86_64/"/>
<copy file="${libdir}/FaCTpp-OWLAPI-3.2-v1.5.2.jar" todir="/lib/"/>
</target>
<target name="jar" depends="compile">
<jar basedir="${classesdir}/locality" destfile="${builddir}/OWLLocality.jar">
<manifest>
<attribute name="Title" value="OWL Locality Checker"/>
<attribute name="Built-By" value="${user.name}"/>
<attribute name="Main-Class" value="de.unibremen.informatik.locality.LocalityChecker lib/org.semanticweb.HermiT.jar"/>
<attribute name="Class-Path" value="lib/owlapi-bin.jar"/>
</manifest>
</jar>
<jar basedir="${classesdir}" destfile="${builddir}/OWL2Parser.jar">
<manifest>
<attribute name="Title" value="OWL2 MNO Parser"/>
<attribute name="Built-By" value="${user.name}"/>
<attribute name="Main-Class" value="OWL2Parser"/>
<attribute name="Class-Path" value="lib/owl2api-bin.jar lib/org.semanticweb.HermiT.jar"/>
</manifest>
</jar>
</target>
<target name="owl-api">
<ant antfile="build.xml" dir="/OwlApi/antbuild/" target="binjar" inheritAll="false"/>
<copy file="/OwlApi/antbuild/build/owlapi-bin.jar" tofile="${libdir}/owl2api-bin.jar"/>
</target>
<target name="copy-libs">
<mkdir dir="/lib"/>
<copy file="${libdir}/owl2api-bin.jar" todir="/lib/"/>
<copy file="${libdir}/org.semanticweb.HermiT.jar" todir="/lib/"/>
</target>
</project>