-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.xml
69 lines (61 loc) · 1.51 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
<?xml version="1.0"?>
<project name="SSLFingerPrint" default="jar" basedir=".">
<property name="version" value="0.9.7"/>
<!-- run native2ascii on the properties files, as these are expected
in iso-8859-1 encoding, but we are using utf-8 -->
<target name="prepare">
<mkdir dir="build"/>
<native2ascii
encoding="UTF-8"
src="src"
dest="build"
includes="**/*.properties"/>
</target>
<target name="compile" depends="prepare">
<javac
debug="on"
target="1.5"
source="1.5"
deprecation="on"
srcdir="src"
destdir="build"
/>
</target>
<target name="jar" depends="compile">
<manifest file="build/MANIFEST.MF">
<attribute name="Main-Class"
value="net.ukuehn.sslfingerprint.SSLFingerprintMain"
/>
</manifest>
<jar
jarfile="sslfp.jar"
basedir="build"
excludes="MANIFEST.MF"
manifest="build/MANIFEST.MF"
/>
<!-- <jar
jarfile="sslfp-${version}.jar"
basedir="build"
excludes="MANIFEST.MF"
manifest="build/MANIFEST.MF"
/>-->
</target>
<target name="src-dist">
<zip destfile="sslfp-${version}-src.zip">
<zipfileset
prefix="sslfp-${version}"
dir="."
>
<include name="src/**/*.java"/>
<include name="src/**/*.properties*"/>
<include name="build.xml"/>
<include name="Changelog"/>
<include name="TODO"/>
<include name="LICENSE"/>
</zipfileset>
</zip>
</target>
<target name="clean">
<delete dir="build"/>
</target>
</project>