-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
31 lines (31 loc) · 1.04 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
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<project default="jar" name="Create Runnable Jar for Project f5-steganography">
<target name="clean" description="Cleanup build">
<delete includeEmptyDirs="true" failonerror="false" dir="build" />
<delete file="f5.jar" />
</target>
<target name="compile">
<mkdir dir="build" />
<!-- compile... -->
<javac debug="true"
deprecation="false"
destdir="build"
encoding="UTF-8"
failonerror="true"
optimize="true"
srcdir="src">
</javac>
<!-- copy resources... -->
<copy todir="build">
<fileset defaultexcludes="true" dir="src" />
</copy>
</target>
<target name="jar" description="Create a JAR" depends="compile">
<jar destfile="f5.jar">
<manifest>
<attribute name="Main-Class" value="Main" />
</manifest>
<fileset dir="build" />
</jar>
</target>
</project>