-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
48 lines (40 loc) · 1.74 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
<project>
<scriptdef name="propertyreset" language="javascript"
description="Allows to assign @{property} new value">
<attribute name="name"/>
<attribute name="value"/>
project.setProperty(attributes.get("name"), attributes.get("value"));
</scriptdef>
<path id="classpath">
<fileset dir="lib" includes="*.jar"/>
</path>
<property name="jar-base-filename" value="additional-scanner"/>
<property name="classes-dir" value="build/classes"/>
<property name="java-version" value="${ant.java.version}"/>
<target name="clean">
<delete dir="${classes-dir}"/>
</target>
<target name="create-classes-dir">
<mkdir dir="${classes-dir}"/>
</target>
<target name="compile" depends="create-classes-dir">
<javac srcdir="src" destdir="${classes-dir}" classpathref="classpath" includeantruntime="false"/>
</target>
<!-- Used to compile to java 6 from the JDK 7 -->
<target name="compile-1.6" depends="create-classes-dir">
<propertyreset name="java-version" value="1.6"/>
<javac srcdir="src" destdir="${classes-dir}" classpathref="classpath" includeantruntime="false" target="1.6" source="1.6"/>
</target>
<target name="jar">
<property name="dest-file" value="build/${jar-base-filename}-j${java-version}.jar"/>
<delete file="${dest-file}"/>
<jar destfile="${dest-file}" basedir="${classes-dir}">
<manifest>
<attribute name="Main-Class" value="burp.BurpExtender"/>
</manifest>
</jar>
</target>
<target name="build" depends="clean,compile,jar"/>
<!-- Build to Java 6 from the JDK 7 -->
<target name="build-1.6" depends="clean,compile-1.6,jar"/>
</project>