-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathbuild.xml
58 lines (49 loc) · 1.94 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
<?xml version="1.0" encoding="UTF-8"?>
<project name="BytecodeParser" default="build" basedir=".">
<path id="project.classpath">
<fileset dir="lib">
<include name="**/*.jar"/>
</fileset>
</path>
<path id="bin.classes">
<fileset dir="tmp/classes">
<include name="**/*.class" />
</fileset>
</path>
<path id="junit.classpath">
<pathelement location="lib/junit-4.8.2.jar" />
<pathelement location="lib/log4j-1.2.16.jar" />
<pathelement location="lib/javassist.jar" />
<pathelement location="tmp/classes" />
<pathelement location="log4j.properties.test.jar" />
</path>
<target name="build" depends="compile">
<copy todir="tmp/classes">
<fileset dir="src">
<include name="**/*.properties"/>
<include name="**/*.xml"/>
<include name="**/*.java" />
</fileset>
</copy>
<jar destfile="dist/bytecodeparser.jar" basedir="tmp/classes" />
</target>
<target name="compile">
<delete dir="tmp" />
<mkdir dir="tmp/classes" />
<javac verbose="yes" srcdir="src" destdir="tmp/classes" target="1.6" debug="true">
<classpath refid="project.classpath" />
</javac>
</target>
<target name="javadoc">
<javadoc destdir="documentation/api" author="true" windowTitle="BytecodeParser API" sourcepath="src" excludepackagenames="test.*" classpathref="project.classpath">
</javadoc>
</target>
<target name="test" depends="compile">
<junit printsummary="yes" fork="yes" haltonfailure="yes" showoutput="true">
<jvmarg value="-Dlog4j.configuration=log4j.properties"/>
<classpath refid="junit.classpath" />
<formatter type="plain"/>
<test name="test.Test"/>
</junit>
</target>
</project>