-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild-drivers.xml
More file actions
46 lines (29 loc) · 1.15 KB
/
build-drivers.xml
File metadata and controls
46 lines (29 loc) · 1.15 KB
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
<?xml version="1.0" encoding="UTF-8"?>
<project name="methods.makejar" default="makejar" basedir=".">
<property name="jarname" value="dbdrivers"/>
<!-- leave: -->
<property name="outputdir" value="${basedir}/../TEMP${jarname}"/>
<target name="clean" description="cleans">
<delete dir="bin/dbdrivers"/>
<delete file="bin/jdbcdrivers.txt"/>
<!-- make sure not to delete own project! note the TEMP above -->
<delete dir="${outputdir}"/>
</target>
<target name="compile" description="compiles">
<antcall target="clean"/>
<mkdir dir="bin/"/>
<mkdir dir="${outputdir}" />
<javac srcdir="src/dbdrivers" classpath="src/." destdir="bin/" debug="on"/>
</target>
<target name="makejar" description="Creates the jar">
<antcall target="compile"/>
<copy todir="bin/" overwrite="true">
<fileset dir="src/">
<include name="jdbcdrivers.txt"/>
</fileset>
</copy>
<delete dir="${outputdir}/../${jarname}.jar"/>
<jar jarfile="${outputdir}/../${jarname}.jar" includes="**/*" basedir="bin/"/>
<antcall target="clean"/>
</target>
</project>