Add test space.

This commit is contained in:
administrateur 2007-01-18 13:11:47 +01:00
parent f443d9c175
commit cb5581481c
4 changed files with 40 additions and 23 deletions

View file

@ -11,18 +11,20 @@
<property name="resources" value="resources"/>
<property name="debug" value="on"/>
<target name="all" depends="compile,xid_dist,examples" />
<target name="all" depends="build,xid_dist,build_test,examples" />
<!-- ******* Init ******* -->
<target name="init">
<tstamp/>
<mkdir dir="${build}"/>
<mkdir dir="build_test/classes"/>
<mkdir dir="${build}/classes"/>
<mkdir dir="${dist}"/>
</target>
<!-- ******* Compile ******* -->
<target name="compile" depends="init">
<!-- ******* build ******* -->
<target name="build" depends="init">
<javac srcdir="${src}" destdir="${build}/classes" debug="${debug}" deprecation="on">
<classpath>
<fileset dir="lib" includes="**/*.jar"/>
@ -30,15 +32,45 @@
</javac>
</target>
<!-- ****** xid.jar ****** -->
<target name="xid_dist" depends="compile">
<!-- ****** xid_dist ****** -->
<target name="xid_dist" depends="build">
<jar update="no" jarfile="dist/xid.jar">
<fileset dir="build/classes" includes="xid/**/**.class" />
<fileset dir="build/classes" includes="xid/**.class" />
<fileset dir="resources" includes="**" />
</jar>
</target>
<!-- ******* build_test ******* -->
<target name="build_test" depends="xid_dist">
<javac srcdir="test" destdir="build_test/classes" debug="${debug}" deprecation="on">
<classpath>
<fileset dir="lib" includes="**/*.jar"/>
</classpath>
</javac>
</target>
<!-- ****** test_dist ****** -->
<target name="test_dist" depends="build_test">
<jar update="no" jarfile="dist/test.jar">
<fileset dir="build_test/classes" includes="xid/test/**.class" />
<fileset dir="resources" includes="**" />
</jar>
</target>
<!-- *********** dotest ******** -->
<target name="dotest" depends="test_dist">
<java classname="xid.test.Test" maxmemory="20m" fork="true">
<classpath>
<fileset dir="lib" includes="**/*.jar" />
<pathelement path="dist/xid.jar"/>
<pathelement path="dist/test.jar"/>
</classpath>
</java>
</target>
<!-- ******* Examples (the webapp). ******* -->
<target name="examples" depends="xid_dist">
@ -63,7 +95,7 @@
<!-- ****** JavaDoc ****** -->
<target name="javadoc" depends="compile">
<target name="javadoc" depends="build">
<javadoc sourcepath="${src}" packageNames="xid.*" destdir="${doc}">
<classpath>
<fileset dir="lib" includes="**/*.jar"/>
@ -75,6 +107,7 @@
<!-- *************** Clean ***********************-->
<target name="clean">
<delete dir="${build}"/>
<delete dir="build_test"/>
</target>
<!-- *********** Produce ZIP release file ******** -->

BIN
dist/xid.jar vendored

Binary file not shown.

View file

@ -1,16 +0,0 @@
package xid.test;
import java.util.*;
import java.io.*;
/**
*
*/
class Test
{
public static void main(String[] args)
{
System.out.println("Hello World!");
}
}

Binary file not shown.