-
Notifications
You must be signed in to change notification settings - Fork 2
/
sc_build.xml
59 lines (48 loc) · 1.73 KB
/
sc_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
52
53
54
55
56
57
58
59
<?xml version="1.0"?>
<project name="StreamCruncher" default="msg" basedir=".">
<target name="msg">
<echo message="Targets: clean, compile, package" />
</target>
<property name="root" location="."/>
<property name="src" location="${root}/src"/>
<property name="lib" location="${root}/lib"/>
<property name="classes" location="${root}/classes"/>
<!--
Oracle Timestamps had to be cast to preserve the details.
Set path to your computer specific location.
-->
<property name="ojdbc.lib.loc" value="C:/oracle/product/10.2.0/db_1/jdbc/lib"/>
<target name="clean">
<delete dir="${classes}"/>
</target>
<target name="init">
<tstamp/>
<property name="final.jar.name" value="streamcruncher.jar"/>
</target>
<path id="lib.jars">
<fileset dir="${lib}">
<include name="*.jar"/>
</fileset>
<fileset dir="${ojdbc.lib.loc}">
<include name="ojdbc14.jar"/>
</fileset>
</path>
<target name="compile" depends="init, clean">
<mkdir dir="${classes}"/>
<javac srcdir="${src}" destdir="${classes}"
target="1.5" debug="on">
<classpath refid="lib.jars"/>
<exclude name="temp/**" />
<exclude name="streamcruncher/test/**" />
</javac>
</target>
<target name="package" depends="compile">
<jar jarfile="${root}/${final.jar.name}">
<fileset dir="${classes}">
<exclude name="streamcruncher/test/**" />
</fileset>
<fileset dir="${root}" includes="StreamCruncher.license.txt" />
<fileset dir="${root}" includes="GNUGPL.txt" />
</jar>
</target>
</project>