-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.xml
More file actions
59 lines (53 loc) · 1.73 KB
/
Copy pathbuild.xml
File metadata and controls
59 lines (53 loc) · 1.73 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
54
55
56
57
58
59
<project name="Units" default="jar" basedir=".">
<target name="init">
<tstamp/>
<property name="src" value="src" />
<property name="bin" value="bin" />
<property name="lib" value="lib" />
<property name="encoding" value="UTF-8" />
<property name="classpath" value="" />
<property file="${basedir}/version.properties" />
<mkdir dir="bin" />
</target>
<target name="javacc" depends="init">
<javacc target="${src}/org/ngs/ngunits/format/UnitParser.jj"
javacchome="${lib}" />
<javacc target="${src}/org/ngs/ngunits/format/UCUMParser.jj"
javacchome="${lib}" />
</target>
<target name="compile" depends="javacc">
<javac srcdir="${src}"
destdir="${bin}"
classpath="${classpath}"
compiler="modern"
source="1.5"
target="1.5"
encoding="UTF-8"
debug="off"
debuglevel="source,lines">
</javac>
<copy todir="${bin}">
<fileset dir="${src}"
includes="**/*.*"
excludes="**/*.java" />
</copy>
</target>
<target name="jar" depends="compile">
<buildnumber />
<jar jarfile="${lib}/ngunits-${build.version}.jar"
basedir="${bin}"
includes="**/*.*"
compress="false"
index="true" />
</target>
<target name="clean" depends="init">
<delete>
<fileset dir="${src}/org/ngs/ngunits/format"
includes="UnitParser*.java" />
<fileset dir="${src}/org/ngs/ngunits/format"
includes="UCUMParser*.java" />
<fileset dir="${src}/org/ngs/ngunits/format"
includes="Token*.java" />
</delete>
</target>
</project>