-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.xml
44 lines (37 loc) · 1.29 KB
/
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
<project name="ATP" default="compile" basedir=".">
<target name="init">
<property name="app.name" value="atp"/>
<property name="build.home" value="build"/>
<property name="build.classes" value="${build.home}/classes"/>
<property name="build.lib" value="${build.home}/lib"/>
<property name="dist" value="dist"/>
<property environment="env"/>
</target>
<target name="compile" depends="init" description="Compile the project and place in ${build.classes}." >
<mkdir dir="${build.classes}"/>
<javac destdir="${build.classes}" debug="on" optimize="on" deprecation="on" classpathref="compile.classpath">
<src refid="core.sourcepath"/>
</javac>
<copy todir="${build.lib}">
<fileset dir="${basedir}/lib" />
</copy>
</target>
<target name="star" depends="compile" description="Build a StarExec package" >
<copy todir="StarExec/bin">
<fileset dir="${build.classes}" />
<fileset dir="${basedir}/lib" />
</copy>
<zip destfile="dist/JavaRes-1-3-0.zip">
<fileset dir="StarExec" />
</zip>
</target>
<path id="core.sourcepath">
<pathelement path="src/atp"/>
<pathelement path="test/atp"/>
</path>
<path id="compile.classpath">
<fileset dir="${basedir}/lib">
<include name="*.jar"/>
</fileset>
</path>
</project>