-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
53 lines (44 loc) · 1.57 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
45
46
47
48
49
50
51
52
53
<?xml version="1.0" encoding="UTF-8"?>
<project name="AeminiumFutures" basedir="." default="main">
<property name="src.dir" value="src"/>
<property name="build.dir" value="bin"/>
<property name="dist.dir" value="dist"/>
<property name="lib.dir" value="lib"/>
<property name="verbose" value="false" />
<path id="rt.classpath">
<fileset dir="../AeminiumRuntime/lib">
<include name="*.jar"/>
</fileset>
</path>
<path id="classpath">
<fileset dir="${lib.dir}" includes="**/*.jar"/>
<pathelement location="../AeminiumRuntime/bin/" />
<path refid="rt.classpath" />
</path>
<path id="classpath.test">
<pathelement location="${build.dir}" />
<path refid="classpath" />
</path>
<target name="clean">
<echo message="In clean "/>
<delete dir="${build.dir}"/>
<delete dir="${dist.dir}"/>
</target>
<target name="check-for-runtime">
<available file="../AeminiumRuntime/bin/aeminium/runtime/Runtime.class" property="runtime.present"/>
</target>
<target name="compile" depends="check-for-runtime" if="runtime.present">
<mkdir dir="${build.dir}"/>
<javac srcdir="${src.dir}" destdir="${build.dir}" classpathref="classpath" debug="true"/>
</target>
<target name="jar" depends="compile">
<mkdir dir="${dist.dir}"/>
<jar destfile="${dist.dir}/${ant.project.name}.jar" basedir="${build.dir}">
<manifest>
<attribute name="Main-Class" value="${main-class}"/>
</manifest>
</jar>
</target>
<target name="clean-build" depends="clean,jar"/>
<target name="main" depends="clean,jar"/>
</project>