-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
23 lines (23 loc) · 957 Bytes
/
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
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<project default="create_run_jar" name="Create Runnable Jar for Project JRegr">
<!--This ANT file should be used to manually compile and package
Jregr as a jar. ANT 1.7 is required. -->
<path id="classpath">
<fileset dir="." includes="**/*.jar" />
</path>
<target name="compile">
<mkdir dir="bin" />
<javac includeantruntime="false" srcdir="src" destdir="bin" classpathref="classpath" target="1.8" source="1.8" />
</target>
<target name="create_run_jar" depends="compile">
<jar destfile="./jregr.jar">
<manifest>
<attribute name="Built-By" value="${user.name}"/>
<attribute name="Main-Class" value="se.alanif.jregr.Main"/>
<attribute name="Class-Path" value="."/>
</manifest>
<fileset dir="./bin"/>
<zipfileset excludes="META-INF/*.SF" src="./lib/commons-cli-1.4/commons-cli-1.4.jar"/>
</jar>
</target>
</project>