forked from mobilesystems/box-java-sdk-v2
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.xml
More file actions
54 lines (54 loc) · 2.38 KB
/
build.xml
File metadata and controls
54 lines (54 loc) · 2.38 KB
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
<?xml version="1.0" encoding="UTF-8"?>
<project default="debug" name="BoxJavaLibraryExtendedV2">
<property name="debuglevel" value="source,lines,vars"/>
<path id="BoxJavaLibraryV2.debug.classpath">
<pathelement location="bin/debug"/>
<pathelement location="bin/test"/>
<fileset dir="libs" includes="*.jar"/>
</path>
<path id="BoxJavaLibraryV2.release.classpath">
<pathelement location="bin/release"/>
<fileset dir="libs" includes="*.jar"/>
</path>
<target name="clean" description="Removes any built files.">
<delete dir="bin"/>
<delete dir="dist"/>
<delete dir="reports"/>
</target>
<target name="debug" description="Performs a debug build.">
<mkdir dir="bin/debug"/>
<javac debug="true" debuglevel="${debuglevel}" destdir="bin/debug" includeantruntime="false">
<src path="src"/>
<classpath refid="BoxJavaLibraryV2.debug.classpath"/>
</javac>
<jar destfile="dist/debug/BoxJavaLibraryV2.jar" basedir="bin/debug"/>
</target>
<target name="release" description="Performs a release build.">
<mkdir dir="bin/release"/>
<javac debug="false" destdir="bin/release" includeantruntime="false">
<src path="src"/>
<classpath refid="BoxJavaLibraryV2.release.classpath"/>
</javac>
<jar destfile="dist/release/BoxJavaLibraryV2.jar" basedir="bin/release"/>
</target>
<target name="test" depends="debug" description="Performs a debug build and then runs tests.">
<mkdir dir="reports"/>
<mkdir dir="bin/test"/>
<javac debug="true" debuglevel="${debuglevel}" destdir="bin/test" includeantruntime="false">
<src path="tst"/>
<classpath refid="BoxJavaLibraryV2.debug.classpath"/>
</javac>
<junit fork="true" forkmode="once" dir=".">
<classpath refid="BoxJavaLibraryV2.debug.classpath"/>
<batchtest todir="reports">
<formatter type="xml"/>
<fileset dir="bin/test" includes="**/*Test.class"/>
</batchtest>
</junit>
<junitreport todir="reports">
<fileset dir="reports" includes="TEST-*.xml"/>
<report format="noframes" todir="reports"/>
</junitreport>
<move file="reports/junit-noframes.html" tofile="reports/Report.html"/>
</target>
</project>