PR: Obtained from: Submitted by: Reviewed by: git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/sandbox/graph/trunk@144585 13f79535-47bb-0310-9956-ffa450edef68
67 lines
1.9 KiB
XML
67 lines
1.9 KiB
XML
<?xml version="1.0"?>
|
|
|
|
<project name="Stratum" default="test" basedir=".">
|
|
|
|
<!-- Allow any user specific values to override the defaults -->
|
|
<property file="${user.home}/build.properties" />
|
|
<!-- Allow user defaults for this project -->
|
|
<property file="build.properties" />
|
|
<!-- Set default values for the build -->
|
|
<property file="default.properties" />
|
|
|
|
<!-- Construct compile classpath -->
|
|
<path id="classpath">
|
|
<pathelement location="${junit.jar}"/>
|
|
<pathelement location="${build.home}/class"/>
|
|
</path>
|
|
|
|
<!-- ================================================================== -->
|
|
<!-- T E S T -->
|
|
<!-- ================================================================== -->
|
|
|
|
<target
|
|
name="test"
|
|
depends="compile-test"
|
|
description="runs (junit) unit tests">
|
|
|
|
<echo>
|
|
Running all JUnit tests
|
|
</echo>
|
|
|
|
<junit printSummary="yes">
|
|
<formatter type="plain"/>
|
|
<classpath refid="classpath"/>
|
|
<batchtest todir=".">
|
|
<fileset dir="${build.home}/class">
|
|
<include name="**/*Test*.class"/>
|
|
</fileset>
|
|
</batchtest>
|
|
</junit>
|
|
</target>
|
|
|
|
<!-- ================================================================== -->
|
|
<!-- C O M P I L E T E S T S -->
|
|
<!-- ================================================================== -->
|
|
|
|
<target
|
|
name="compile-test"
|
|
description="==> compiles the test source code">
|
|
|
|
<ant antfile="build.xml" target="clean"/>
|
|
<ant antfile="build.xml" target="compile"/>
|
|
|
|
<javac srcdir="${test.home}"
|
|
destdir="${build.home}/class"
|
|
excludes="**/package.html"
|
|
debug="${debug}"
|
|
deprecation="${deprecation}"
|
|
optimize="${optimize}">
|
|
<classpath refid="classpath"/>
|
|
<classpath>
|
|
<pathelement path="${build.home}/class"/>
|
|
</classpath>
|
|
</javac>
|
|
</target>
|
|
|
|
</project>
|