forked from pool/dom2-core-tests
113 lines
3.4 KiB
Diff
113 lines
3.4 KiB
Diff
--- build.xml.orig 2001-05-21 09:34:00.000000000 +0200
|
|
+++ build.xml 2006-01-23 23:33:13.000000000 +0100
|
|
@@ -1,24 +1,13 @@
|
|
<!-- JUnit build script using ant 1.3 -->
|
|
-<project name="junit" default="dist" basedir=".">
|
|
+<project name="dom2-core-tests" default="dist" basedir=".">
|
|
<target name="init">
|
|
<tstamp/>
|
|
- <property name="version" value="3.7" />
|
|
- <property name="dist" value="junit${version}" />
|
|
- <property name="versionfile" value="junit/runner/Version.java" />
|
|
+ <property name="version" value="0.0.1" />
|
|
+ <property name="dist" value="dom2-core-tests-${version}" />
|
|
<property name="zipfile" value="${dist}.zip" />
|
|
</target>
|
|
|
|
- <target name="versiontag" depends="init">
|
|
- <filter token="version" value="${version}" />
|
|
- <copy
|
|
- file="${versionfile}"
|
|
- tofile="${versionfile}tmp"
|
|
- filtering="on"
|
|
- />
|
|
- <move file="${versionfile}tmp" tofile="${versionfile}" />
|
|
- </target>
|
|
-
|
|
- <target name="build" depends="versiontag">
|
|
+ <target name="build" depends="init">
|
|
<javac
|
|
srcdir="."
|
|
destdir="."
|
|
@@ -32,75 +21,23 @@
|
|
<jar
|
|
jarfile="${dist}/src.jar"
|
|
basedir="."
|
|
- excludes="${dist}/src.jar, junit/tests/**, junit/samples/**, **/*.class, doc/**, README.html, build.xml"
|
|
+ excludes="${dist}/src.jar"
|
|
/>
|
|
<jar
|
|
- jarfile="${dist}/junit.jar"
|
|
+ jarfile="${dist}/dom2-core-tests.jar"
|
|
basedir="."
|
|
- excludes="${dist}/junit.jar, junit/tests/**, junit/samples/**, **/*.java, doc/**, README.html, jar-manifest.txt"
|
|
- />
|
|
- <copy todir="${dist}/junit/samples">
|
|
- <fileset dir="junit/samples" />
|
|
- </copy>
|
|
- <copy todir="${dist}/junit/tests">
|
|
- <fileset dir="junit/tests" />
|
|
- </copy>
|
|
- <delete file="${dist}/junit/tests/test.jar"/>
|
|
- <jar
|
|
- jarfile="${dist}/junit/tests/test.jar"
|
|
- basedir="."
|
|
- includes="junit/tests/LoadedFromJar.class"
|
|
+ includes="**/*.class"
|
|
/>
|
|
<mkdir dir="${dist}/javadoc" />
|
|
<javadoc
|
|
sourcepath="."
|
|
- packagenames="junit.framework.*, junit.extensions.*"
|
|
+ packagenames="org.w3c.domts.*"
|
|
destdir="${dist}/javadoc"
|
|
author="false"
|
|
version="false"
|
|
use="false"
|
|
- windowtitle="JUnit API"
|
|
+ windowtitle="DOM 2 Core Test Suite"
|
|
/>
|
|
- <copy todir="${dist}/doc">
|
|
- <fileset dir="doc"/>
|
|
- </copy>
|
|
- <copy file="README.html" tofile="${dist}/README.html" />
|
|
-
|
|
- <java classname="junit.textui.TestRunner" fork="yes">
|
|
- <arg value="junit.samples.AllTests" />
|
|
- <classpath>
|
|
- <pathelement location="${dist}" />
|
|
- <pathelement location="${dist}/junit.jar" />
|
|
- </classpath>
|
|
- </java>
|
|
</target>
|
|
|
|
- <target name="zip">
|
|
- <!-- !!! hard code names, variable substitution doesn't work !!! -->
|
|
- <zip
|
|
- zipfile="junit3.6.zip"
|
|
- basedir="."
|
|
- includes="junit3.6/**"
|
|
- />
|
|
- </target>
|
|
-
|
|
- <target name="awtui" depends="dist">
|
|
- <java classname="junit.awtui.TestRunner" fork="yes">
|
|
- <arg value="junit.samples.AllTests" />
|
|
- <classpath>
|
|
- <pathelement location="${dist}" />
|
|
- <pathelement location="${dist}/junit.jar" />
|
|
- </classpath>
|
|
- </java>
|
|
- </target>
|
|
-
|
|
- <target name="swingui" depends="dist">
|
|
- <java classname="junit.swingui.TestRunner" fork="yes">
|
|
- <arg value="junit.samples.AllTests" />
|
|
- <classpath>
|
|
- <pathelement location="${dist}" />
|
|
- <pathelement location="${dist}/junit.jar" />
|
|
- </classpath>
|
|
- </java>
|
|
- </target>
|
|
</project>
|