-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathbuild.xml
More file actions
32 lines (27 loc) · 776 Bytes
/
build.xml
File metadata and controls
32 lines (27 loc) · 776 Bytes
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
<project>
<target name="clean">
<delete dir="out"/>
</target>
<target name="compile">
<mkdir dir="out/production"/>
<javac srcdir="src" destdir="out/production">
<classpath>
<fileset dir="lib">
<include name="*.jar" />
</fileset>
</classpath>
</javac>
</target>
<target name="jar">
<mkdir dir="out/artifacts"/>
<jar destfile="out/artifacts/codestrikes.java.adapter.jar" basedir="out/production">
<manifest>
<attribute name="Main-Class" value="net.codestrikes.adapter.Main"/>
</manifest>
<zipgroupfileset dir="lib" includes="*.jar"/>
</jar>
</target>
<target name="run">
<java jar="out/artifacts/codestrikes.java.adapter.jar" fork="true"/>
</target>
</project>