Repository navigation
Expand file tree
/
Copy pathbuild.xml
More file actions
53 lines (48 loc) · 1.62 KB
/
Copy pathbuild.xml
File metadata and controls
53 lines (48 loc) · 1.62 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
47
48
49
50
51
52
53
<project name="cdf_gen" basedir="." default="clean-build">
<property name="lib.dir" value="lib"/>
<property name="cdfjava.dir" value="/usr/local/cdf/cdfjava/classes"/>
<property name="src.dir" value="src/"/>
<property name="build.dir" value="build/"/>
<property name="runtime.dir" value="runtime_files"/>
<property name="main-class" value="edu.ucsc.barrel.cdf_gen.CDF_Gen"/>
<path id="classpath">
<fileset dir="${lib.dir}" includes="**/*.jar"/>
</path>
<target name="clean">
<delete dir="build"/>
</target>
<target name="compile">
<mkdir dir="build/classes"/>
<javac
includeantruntime="true"
debug="true"
debuglevel="lines,vars,source"
srcdir="${src.dir}"
destdir="${build.dir}/classes"
classpathref="classpath"
/>
</target>
<target name="jar" depends="compile" >
<mkdir dir="build/jar"/>
<jar
destfile="${build.dir}/jar/cdf_gen.jar"
basedir="${build.dir}/classes"
>
<manifest>
<attribute name="Main-Class"
value="${main-class}"
/>
<attribute name="Class-Path"
value="lib/commons-math3-3.1.1.jar lib/cdfjava.jar"
/>
</manifest>
</jar>
</target>
<target name="copy">
<copy todir="build/jar">
<fileset dir="${runtime.dir}"/>
</copy>
<mkdir dir="build/jar/fc_rollovers"/>
</target>
<target name="clean-build" depends="clean,jar,copy"/>
</project>