-
Notifications
You must be signed in to change notification settings - Fork 273
/
build.xml
30 lines (26 loc) · 1.19 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
<project default="all">
<!-- author: Jan Peter Stotz -->
<property name="jar.filename" value="abe.jar"/>
<property name="main.class" value="org.nick.abe.Main"/>
<property name="bcprov.jar" value="lib/bcprov-jdk18on-1.77.jar"/>
<target name="all" depends="build,jar"/>
<target name="build">
<delete includeEmptyDirs="true" failonerror="false">
<fileset dir="build" includes="**/*"/>
</delete>
<mkdir dir="build"/>
<javac srcdir="src" destdir="build" classpath="${bcprov.jar}" debug="true" includeantruntime="false"
encoding="UTF-8" source="8" target="8" release="8"/>
</target>
<target name="jar" depends="build" description="Create a standalone-jar (no external dependency)">
<delete file="${jar.filename}"/>
<jar destfile="${jar.filename}" filesetmanifest="mergewithoutmain">
<manifest>
<attribute name="Main-Class" value="${main.class}"/>
</manifest>
<fileset dir="build"/>
<!-- Include BouncyCastle JAR -->
<zipfileset src="${bcprov.jar}" includes="org/**"/>
</jar>
</target>
</project>