-
Notifications
You must be signed in to change notification settings - Fork 9
/
build.xml
44 lines (44 loc) · 1.51 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
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE project>
<project name="jdbcrunner_build" default="create_run_jar" basedir=".">
<description>
JdbcRunner build
</description>
<property file="src/jdbcrunner/resources.properties" />
<target name="create_run_jar" depends="compile,makedir,deletedir">
<jar destfile="jdbcrunner-${Manager.VERSION}.jar" filesetmanifest="mergewithoutmain" duplicate="preserve">
<manifest>
<attribute name="Main-Class" value="JR" />
</manifest>
<fileset dir="classes" />
<fileset dir="meta-inf" />
<fileset file="helper.js" />
<zipgroupfileset dir="lib" includes="*.jar" />
<zipgroupfileset dir="libjdbc" includes="*.jar" />
</jar>
<jar destfile="jdbcrunner-${Manager.VERSION}-nojdbc.jar" filesetmanifest="mergewithoutmain" duplicate="preserve">
<manifest>
<attribute name="Main-Class" value="JR" />
</manifest>
<fileset dir="classes" />
<fileset file="helper.js" />
<zipgroupfileset dir="lib" includes="*.jar" />
</jar>
</target>
<target name="compile" depends="makedir,deletedir">
<javac srcdir="src" destdir="classes" debug="on" encoding="UTF-8" includeantruntime="no">
<classpath>
<fileset dir="lib" includes="*.jar" />
</classpath>
</javac>
<copy todir="classes">
<fileset dir="src" includes="**/*.properties" />
</copy>
</target>
<target name="makedir" depends="deletedir">
<mkdir dir="classes" />
</target>
<target name="deletedir">
<delete dir="classes" />
</target>
</project>