-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathbuild.xml
64 lines (53 loc) · 1.48 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
63
64
<?xml version="1.0"?>
<project name="jimmix" default="dist" basedir=".">
<path id="classpath">
<pathelement location="build"/>
<fileset dir="${basedir}/lib">
<include name="*.jar"/>
</fileset>
</path>
<path id="client.classpath">
<path refid="classpath"/>
</path>
<target name="compile" description="Compile the source">
<delete dir="build"/>
<mkdir dir="build"/>
<javac destdir="build"
debug="on"
deprecation="on"
optimize="on"
classpathref="classpath"
includeantruntime="false"
source="1.6" target="1.6">
<src path="src/core"/>
</javac>
<delete dir="build_lib"/>
<mkdir dir="build_lib" />
<javac destdir="build_lib"
debug="on"
deprecation="on"
optimize="on"
classpathref="classpath"
includeantruntime="false"
source="1.6" target="1.6">
<src path="src/lib" />
</javac>
</target>
<target name="dist" depends="compile" description="Package the application">
<delete dir="dist"/>
<mkdir dir="dist"/>
<mkdir dir="dist/bin"/>
<mkdir dir="dist/lib"/>
<copy todir="dist/bin">
<fileset dir="src/bash"/>
</copy>
<chmod file="dist/bin/jimmix.sh" perm="ugo+rx"/>
<copy todir="dist/lib">
<fileset dir="lib"/>
</copy>
<jar jarfile="dist/lib/0patch.jar" basedir="build_lib"/>
<jar jarfile="dist/bin/${ant.project.name}.jar" basedir="build"/>
<delete dir="build"/>
<delete dir="build_lib"/>
</target>
</project>