forked from ChristopherSchultz/ssltest
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
84 lines (74 loc) · 2.82 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
<?xml version="1.0" ?>
<project name="ssltest">
<target name="init">
<tstamp />
<property file="build-local.properties" />
<property file="build.properties" />
<patternset id="jar.file.pattern" includes="**/*.jar" />
<path id="compile.classpath">
<fileset dir="${lib.build.dir}">
<patternset refid="jar.file.pattern" />
</fileset>
</path>
</target>
<target name="clean" depends="init" description="Removes compiled classes, JAR files, etc.">
<delete dir="${build.dir}" />
<delete dir="${doc.dir}" />
</target>
<target name="compile" depends="init" description="Builds source files into class files.">
<mkdir dir="${build.classes.dir}" />
<mkdir dir="${lib.build.dir}" /><!-- Just in case -->
<javac destdir="${build.classes.dir}"
srcdir="${src.java.dir}"
deprecation="${javac.deprecation}"
classpathref="compile.classpath"
debug="${javac.debug}"
debuglevel="${javac.debuglevel}"
source="${javac.src.spec}"
target="${javac.target.spec}"
includeAntRuntime="false">
<compilerarg value="-Xlint:-options" />
</javac>
</target>
<target name="jar" depends="compile" description="Assembles an executable JAR file from class files.">
<jar destfile="${build.dir}/${jar.file}" compress="true"
basedir="${build.classes.dir}" includes="**/*.class">
<manifest>
<attribute name="Main-Class" value="net.christopherschultz.ssltest.SSLTest" />
</manifest>
</jar>
</target>
<target name="dist" depends="clean, jar" description="Cleans and rebuilds everything" />
<target name="findbugs" depends="compile" description="Runs UMD's FindBugs against the source.">
<condition property="findbugs-present">
<and>
<isset property="findbugs.home" />
<available file="${findbugs.home}" type="dir" />
</and>
</condition>
<fail unless="findbugs-present">
FindBugs not configured: ${findbugs.home} does not point to a valid FindBugs distribution.
</fail>
<taskdef resource="edu/umd/cs/findbugs/anttask/tasks.properties">
<classpath>
<fileset dir="${findbugs.home}/lib">
<patternset refid="jar.file.pattern" />
</fileset>
</classpath>
</taskdef>
<mkdir dir="${findbugs.dir}" />
<findbugs home="${findbugs.home}"
output="${findbugs.output}"
outputFile="${findbugs.outputFile}"
excludeFilter="${findbugs.excludeFilter}"
reportLevel="${findbugs.reportLevel}"
jvmargs="-Xmx64M"
>
<auxClasspath refid="compile.classpath" />
<sourcePath path="${src.java.dir}" />
<fileset dir="${build.classes.dir}">
<include name="**/*.class" />
</fileset>
</findbugs>
</target>
</project>