forked from svn2github/javaopensurf
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathbuild.xml
38 lines (32 loc) · 1.27 KB
/
build.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<project>
<property name="lib.dir" location="${basedir}/lib"/>
<property name="build.dir" location="${basedir}/build"/>
<property name="class.dir" location="${build.dir}/classes"/>
<property name="dist.dir" location="${build.dir}/jar"/>
<property name="src.dir" location="${basedir}/src"/>
<property name="test.dir" location="${basedir}/test"/>
<property name="testimg1" location="${basedir}/example/whitehouse1.jpg" />
<property name="testimg2" location="${basedir}/example/whitehouse2.jpg" />
<path id="classpath">
<fileset dir="${lib.dir}" includes="**/*.jar"/>
<pathelement path="${class.dir}"/>
</path>
<target name="clean">
<delete dir="${build.dir}"/>
</target>
<target name="compile">
<mkdir dir="${class.dir}"/>
<javac srcdir="${src.dir}" destdir="${class.dir}" classpathref="classpath"/>
<javac srcdir="${test.dir}" destdir="${class.dir}" classpathref="classpath"/>
</target>
<target name="example" depends="compile">
<java fork="true" classpathref="classpath" classname="com.stromberglabs.jopensurf.SurfCompare">
<arg line="${testimg1}"/>
<arg line="${testimg2}"/>
</java>
</target>
<target name="jar" depends="compile">
<mkdir dir="${dist.dir}"/>
<jar destfile="${dist.dir}/jopensurf.jar" basedir="${class.dir}"/>
</target>
</project>