-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.xml
51 lines (51 loc) · 1.87 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
39
40
41
42
43
44
45
46
47
48
49
50
51
<?xml version="1.0" encoding="UTF-8"?>
<project name="Droid-FormatIdentificationPlugin" basedir="." default="build-all">
<property file="build.properties" />
<path id="classpath">
<fileset dir="${lib.dir}" includes="**.jar" />
</path>
<target name="build-all" depends="clean, init, copy_jars, copy_conf, compile, build_jar" />
<target name="clean">
<echo>Cleaning the ${build.dir} and ${target.dir} directories</echo>
<delete dir="${build.dir}" />
<delete dir="${target.dir}" />
</target>
<target name="init" depends="clean">
<echo>Creating the ${build.dir} and ${target.dir} directories</echo>
<mkdir dir="${build.dir}/classes" />
<mkdir dir="${build.dir}/lib" />
<mkdir dir="${build.dir}/conf" />
<mkdir dir="${target.dir}" />
</target>
<target name="copy_jars">
<echo>Copy lib jars</echo>
<copy todir="${build.dir}/lib" overwrite="true">
<fileset dir="${lib.dir}" includes="**.jar" excludes="dps-sdk**" />
</copy>
</target>
<target name="copy_conf">
<echo>Copy conf files</echo>
<copy todir="${build.dir}/conf" overwrite="true">
<fileset dir="${conf.dir}" includes="**" />
</copy>
</target>
<target name="compile" depends="init">
<echo>Compile the source files</echo>
<javac srcdir="${src.dir}" destdir="${build.dir}/classes" debug="true"
includeantruntime="false">
<classpath refid="classpath" />
</javac>
</target>
<target name="build_jar" depends="compile">
<echo> Build DriodIdentificationPlugin jar </echo>
<jar destfile="${target.dir}/FFDroidIdentifier.jar"
basedir="${build.dir}/classes">
<fileset dir="${src.dir}" includes="**" excludes=" com/**" />
<fileset dir="${build.dir}" includes="*lib/*.jar, conf/**" excludes="classes/**" />
<manifest>
<attribute name="Main-Class"
value="com.exlibris.dps.repository.plugin.formatidentification.FFDroidIdentificationPlugin" />
</manifest>
</jar>
</target>
</project>