-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.xml
55 lines (48 loc) · 1.47 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
<project name="SprintStack" default="dist" basedir=".">
<description>
Distributed + Evented I/O for Rhino
</description>
<property name="src" location="src"/>
<property name="build" location="classes"/>
<property name="dist" location="dist"/>
<property name="lib" location="lib"/>
<path id="build-classpath" description="The default classpath.">
<fileset dir="${lib}">
<include name="*.jar"/>
</fileset>
</path>
<target name="init">
<tstamp/>
<mkdir dir="${build}"/>
</target>
<target name="compile" depends="init">
<javac srcdir="${src}" destdir="${build}" includeantruntime="false">
<classpath refid="build-classpath"/>
</javac>
</target>
<target name="jar" depends="compile">
<jar jarfile="${dist}/sprintstack.jar"
basedir="${build}">
<manifest>
<attribute name="Main-Class"
value="com.sprintstack.SprintStack" />
</manifest>
</jar>
</target>
<target name="uberjar" depends="jar">
<mkdir dir="${dist}"/>
<jar jarfile="${dist}/sprintstack-standalone.jar"
compress="true">
<zipgroupfileset dir="${lib}" includes="*.jar"/>
<zipgroupfileset dir="${dist}" includes="sprintstack.jar"/>
<manifest>
<attribute name="Main-Class"
value="com.sprintstack.SprintStack" />
</manifest>
</jar>
</target>
<target name="clean">
<delete dir="${build}"/>
<delete dir="${dist}"/>
</target>
</project>