forked from darius/expr
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathbuild.xml
More file actions
68 lines (63 loc) · 2.56 KB
/
build.xml
File metadata and controls
68 lines (63 loc) · 2.56 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
60
61
62
63
64
65
66
67
68
<?xml version="1.0"?>
<project name="expr" default="all" basedir=".">
<description>
This package parses and evaluates mathematical expressions over
floating-point numbers, like `2 + 2` or `cos(x/(2*pi)) * cos(y/(2*pi))`.
The design priorities were ease of use with helpful error messages,
ease of integration into applets, and good performance: fast
evaluation and short download times. Features and flexibility were
not high priorities, but the code is simple enough that it shouldn't
be hard to change to your taste.
</description>
<property file="build.properties" />
<!--<property name="project.name" value="expr" />
<property name="source.version" value="${ant.java.version}" />
<property name="compiler.args" value="-Xlint" />-->
<property name="dir.build" value="ant-bin" />
<property name="dir.javadoc" value="doc" />
<property name="jdoc.public" value="${dir.javadoc}/public" />
<property name="jdoc.private" value="${dir.javadoc}/private" />
<property name="dir.src" value="expr"/>
<path id="test.classpath">
<pathelement location="${dir.build}"/>
</path>
<target name="all" depends="clean,init,jar,test,jdoc-public,jdoc-private" />
<target name="init" depends="clean">
<mkdir dir="${dir.build}"/>
</target>
<target name="compile" depends="init">
<javac srcdir="expr" destdir="${dir.build}"/>
</target>
<target name="jar" depends="compile">
<jar basedir="${dir.build}" destfile="expr.jar"/>
</target>
<target name="compile-test" depends="jar">
<javac srcdir="expr/test" destdir="${dir.build}"/>
</target>
<target name="test" depends="compile-test">
<junit printsummary="yes" fork="no" haltonfailure="yes">
<test name="expr.test.RegressionTest" />
<classpath refid="test.classpath"/>
<formatter type="brief" usefile="no" />
</junit>
</target>
<target name="benchmark" depends="compile-test">
<exec executable="./benchmark.sh" output="last-benchmark-run" />
</target>
<target name="jdoc-public">
<javadoc excludepackagenames="expr.test" access="public" destdir="${jdoc.public}" use="true">
<link href="http://java.sun.com/j2se/1.5.0/docs/api/"/>
<fileset dir="${dir.src}" defaultexcludes="yes" includes="**/*.java" excludes="test/**/*.java" />
</javadoc>
</target>
<target name="jdoc-private">
<javadoc access="private" destdir="${jdoc.private}" use="true">
<link href="http://java.sun.com/j2se/1.5.0/docs/api/"/>
<fileset dir="${dir.src}" defaultexcludes="yes" includes="**/*.java"/>
</javadoc>
</target>
<target name="clean">
<delete dir="${dir.build}" />
<delete dir="${dir.javadoc}" />
</target>
</project>