-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathbuild.xml
executable file
·67 lines (57 loc) · 2.31 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
<?xml version="1.0" ?>
<project default="main">
<!-- set global properties for this build -->
<property name="src" location="src" />
<property name="build" location="build" />
<property name="dist" location="dist" />
<property name="doc" location="doc" />
<property name="junit.home" location="/Applications/eclipse/plugins/org.junit_3.8.2.v200706111738/" />
<path id="compile.classpath">
<fileset dir="${junit.home}">
<include name="*.jar" />
</fileset>
<pathelement location="${build}" />
</path>
<target name="main" depends="clean, compile, dist" description="Main target">
<echo>
Building AntiXSS jar
</echo>
</target>
<target name="init">
<!-- Create the time stamp -->
<tstamp />
<!-- Create the build directory structure used by compile -->
<mkdir dir="${build}" />
</target>
<target name="compile" depends="init" description="Build Java classes">
<javac srcdir="src/com/gdssecurity/utils" destdir="${build}" source="1.4">
<classpath refid="compile.classpath" />
</javac>
</target>
<target name="dist" description="Create distribution Jar file">
<!-- Create the distribution directory -->
<mkdir dir="${dist}" />
<jar jarfile="${dist}/AntiXSS.jar" basedir="${build}" includes="com/gdssecurity/utils/AntiXSS.class" />
</target>
<target name="clean" description="Clean up">
<!-- Delete the ${build} and ${dist} directory trees -->
<delete dir="${build}" />
<delete dir="${dist}" />
<delete dir="${doc}" />
<delete dir="bin" />
</target>
<target name="test" depends="compile" description="Run JUnit tests">
<junit errorProperty="test.failed" failureProperty="test.failed">
<classpath refid="compile.classpath" />
<formatter type="brief" usefile="false" />
<formatter type="xml" />
<test name="com.gdssecurity.utils.AntiXSSTest" />
</junit>
<fail message="Tests failed: check test reports." if="test.failed" />
</target>
<target name="javadoc" description="Generate Javadoc documentation">
<javadoc access="public" author="true" destdir="${doc}" nodeprecated="false" nodeprecatedlist="false" noindex="false" nonavbar="false" notree="false" source="1.4" sourcefiles="src/com/gdssecurity/utils/AntiXSS.java" sourcepath="src" splitindex="true" use="true" version="true">
<classpath refid="compile.classpath" />
</javadoc>
</target>
</project>