-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.xml
executable file
·48 lines (39 loc) · 1.21 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
<!-- This Ant script will deploy the program as a jar -->
<project default="jar">
<!-- Compile and zip the source code into a jar -->
<target name="jar">
<!-- Make the folders we'll need -->
<mkdir dir="ant"/>
<mkdir dir="work"/>
<!--
Compile all the .java files into .class files
debug = yes Include debug information in the .class files
destdir Where to put the .class files
source and target Use Java version 1.5
-->
<javac
debug="yes"
destdir="ant"
source="1.5"
target="1.5">
<!-- Folders that have trees of .java files to compile -->
<src path="source"/>
</javac>
<!--
Zip files together to make a jar
jarfile Where to make the .jar file, overwrite something there
basedir Find the files to zip in the jar here
filesonly = yes Store only file entries
-->
<jar
jarfile="work/HelloProject.jar"
basedir="ant"
filesonly="yes">
<!-- Write a manifest inside the jar -->
<manifest>
<!-- The class Java will run when the user double-clicks the jar -->
<attribute name="Main-Class" value="org.limewire.hello.project.Main"/>
</manifest>
</jar>
</target>
</project>