forked from mvolkmann/mvolkmann.github.com
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.xml.html
More file actions
76 lines (67 loc) · 2.41 KB
/
Copy pathbuild.xml.html
File metadata and controls
76 lines (67 loc) · 2.41 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR.html1/DTD.html1-transitional.dtd">
<html xmlns="http://www.w3.org/1999.html">
<head>
<title>JSON build.xml</title>
<link rel="stylesheet" type="text/css" href="../../common.css"/>
</head>
<body>
<h2>JSON build.xml</h2>
<pre><div class="code"><project name="JSONDemo" default="test">
<property environment="env"/>
<property file="build.properties"/>
<path id="classpath">
<pathelement location="build/classes"/>
<pathelement location="${commons.beanutils.jar}"/>
<pathelement location="${commons.lang.jar}"/>
<pathelement location="${commons.logging.jar}"/>
<pathelement location="${ezmorph.jar}"/>
<pathelement location="${json.lib.jar}"/>
<pathelement location="${junit.jar}"/>
</path>
<target name="clean" depends="clean.test"
description="deletes all generated files">
<delete dir="build"/>
</target>
<target name="clean.test" description="deletes all generated files">
<delete dir="test"/>
</target>
<target name="compile" depends="prepare"
description="compiles source files">
<javac srcdir="src/java" destdir="build/classes"
classpathref="classpath" deprecation="on" debug="on">
<compilerarg line="-Xlint"/>
</javac>
</target>
<target name="prepare">
<mkdir dir="build/classes"/>
<mkdir dir="test"/>
</target>
<target name="test" depends="clean.test,compile"
description="runs all JUnit tests">
<junit fork="yes" printsummary="yes">
<classpath refid="classpath"/>
<batchtest todir="test">
<fileset dir="src/java" includes="**/${test}Test.java"/>
</batchtest>
<formatter type="xml"/>
</junit>
<junitreport toDir="test">
<fileset dir="test"/>
<report format="frames" todir="test"/>
</junitreport>
<exec os="Windows XP" executable="cmd.exe">
<arg line="/c start test/index.html"/>
</exec>
<exec os="Mac OS X" executable="open">
<arg line="-a /Applications/Safari.app test/index.html"/>
</exec>
</target>
</project></div></pre>
<hr/>
<p style="text-align:center">
Copyright © 2007 Object Computing, Inc. All rights reserved.
</p>
</body>
</html>