-
Notifications
You must be signed in to change notification settings - Fork 31
/
Copy pathbuild.xml
62 lines (54 loc) · 1.68 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
54
55
56
57
58
59
60
61
62
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<project default="runjar"
name="Create Runnable Jar for Project ahni with libraries in sub-folder">
<property name="major-version-number" value="2" />
<property name="ant.build.javac.source" value="1.6"/>
<property name="ant.build.javac.target" value="1.6"/>
<target name="clean">
<delete dir="antbin" />
<mkdir dir="antbin" />
</target>
<target name="build">
<javac srcdir="src" destdir="antbin" debug="on" includeAntRuntime="false">
<classpath>
<fileset dir="lib">
<include name="**/*.jar" />
</fileset>
</classpath>
</javac>
</target>
<target name="runjar">
<antcall target="build" />
<jar destfile="../ahni.jar" filesetmanifest="mergewithoutmain">
<manifest>
<attribute name="Main-Class" value="com.ojcoleman.ahni.hyperneat.Run" />
</manifest>
<fileset dir="antbin" />
<fileset dir="src" />
<zipgroupfileset dir="lib" includes="**/*.jar" />
</jar>
</target>
<target name="runjarnolib">
<antcall target="build" />
<jar destfile="../ahni.jar" filesetmanifest="mergewithoutmain">
<manifest>
<attribute name="Main-Class" value="com.ojcoleman.ahni.hyperneat.Run" />
</manifest>
<fileset dir="antbin" />
<fileset dir="src" />
</jar>
</target>
<target name="runjarv">
<antcall target="build" />
<buildnumber />
<jar destfile="../ahni-${major-version-number}.${build.number}.jar"
filesetmanifest="mergewithoutmain">
<manifest>
<attribute name="Main-Class" value="com.ojcoleman.ahni.hyperneat.Run" />
</manifest>
<fileset dir="antbin" />
<fileset dir="src" />
<zipgroupfileset dir="lib" includes="**/*.jar" />
</jar>
</target>
</project>