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 name="json-simple" default="main" basedir=".">
<path id="runtime.path">
<fileset dir="lib">
<include name="*.jar"/>
</fileset>
<pathelement location="build/test"/>
</path>
<path id="compile.path">
<fileset dir="lib">
<include name="*.jar"/>
</fileset>
</path>
<target name="main" depends="mkdir,compile,junit">
</target>
<target name="clean">
<delete includeemptydirs="true">
<fileset dir="build/test" includes="**/*"/>
<fileset dir="." includes="TEST-*.txt"/>
</delete>
</target>
<target name="mkdir">
<mkdir dir="build/test"/>
</target>
<target name="compile">
<javac srcdir="test"
destdir="build/test"
includes="**/*.java"
encoding="UTF-8"
target="1.2"
source="1.2">
<classpath refid="compile.path"/>
</javac>
</target>
<target name="junit">
<junit>
<classpath refid="runtime.path"/>
<formatter type="plain"/>
<test name="org.json.simple.Test"/>
<test name="org.json.simple.parser.YylexTest"/>
</junit>
</target>
</project>
|