Add test space.
This commit is contained in:
parent
f443d9c175
commit
cb5581481c
4 changed files with 40 additions and 23 deletions
47
build.xml
47
build.xml
|
@ -11,18 +11,20 @@
|
||||||
<property name="resources" value="resources"/>
|
<property name="resources" value="resources"/>
|
||||||
<property name="debug" value="on"/>
|
<property name="debug" value="on"/>
|
||||||
|
|
||||||
<target name="all" depends="compile,xid_dist,examples" />
|
<target name="all" depends="build,xid_dist,build_test,examples" />
|
||||||
|
|
||||||
<!-- ******* Init ******* -->
|
<!-- ******* Init ******* -->
|
||||||
<target name="init">
|
<target name="init">
|
||||||
<tstamp/>
|
<tstamp/>
|
||||||
<mkdir dir="${build}"/>
|
<mkdir dir="${build}"/>
|
||||||
|
<mkdir dir="build_test/classes"/>
|
||||||
<mkdir dir="${build}/classes"/>
|
<mkdir dir="${build}/classes"/>
|
||||||
<mkdir dir="${dist}"/>
|
<mkdir dir="${dist}"/>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<!-- ******* Compile ******* -->
|
|
||||||
<target name="compile" depends="init">
|
<!-- ******* build ******* -->
|
||||||
|
<target name="build" depends="init">
|
||||||
<javac srcdir="${src}" destdir="${build}/classes" debug="${debug}" deprecation="on">
|
<javac srcdir="${src}" destdir="${build}/classes" debug="${debug}" deprecation="on">
|
||||||
<classpath>
|
<classpath>
|
||||||
<fileset dir="lib" includes="**/*.jar"/>
|
<fileset dir="lib" includes="**/*.jar"/>
|
||||||
|
@ -30,15 +32,45 @@
|
||||||
</javac>
|
</javac>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<!-- ****** xid.jar ****** -->
|
|
||||||
<target name="xid_dist" depends="compile">
|
<!-- ****** xid_dist ****** -->
|
||||||
|
<target name="xid_dist" depends="build">
|
||||||
<jar update="no" jarfile="dist/xid.jar">
|
<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="**" />
|
<fileset dir="resources" includes="**" />
|
||||||
</jar>
|
</jar>
|
||||||
</target>
|
</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). ******* -->
|
<!-- ******* Examples (the webapp). ******* -->
|
||||||
<target name="examples" depends="xid_dist">
|
<target name="examples" depends="xid_dist">
|
||||||
|
|
||||||
|
@ -63,7 +95,7 @@
|
||||||
|
|
||||||
|
|
||||||
<!-- ****** JavaDoc ****** -->
|
<!-- ****** JavaDoc ****** -->
|
||||||
<target name="javadoc" depends="compile">
|
<target name="javadoc" depends="build">
|
||||||
<javadoc sourcepath="${src}" packageNames="xid.*" destdir="${doc}">
|
<javadoc sourcepath="${src}" packageNames="xid.*" destdir="${doc}">
|
||||||
<classpath>
|
<classpath>
|
||||||
<fileset dir="lib" includes="**/*.jar"/>
|
<fileset dir="lib" includes="**/*.jar"/>
|
||||||
|
@ -75,6 +107,7 @@
|
||||||
<!-- *************** Clean ***********************-->
|
<!-- *************** Clean ***********************-->
|
||||||
<target name="clean">
|
<target name="clean">
|
||||||
<delete dir="${build}"/>
|
<delete dir="${build}"/>
|
||||||
|
<delete dir="build_test"/>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<!-- *********** Produce ZIP release file ******** -->
|
<!-- *********** Produce ZIP release file ******** -->
|
||||||
|
|
BIN
dist/xid.jar
vendored
BIN
dist/xid.jar
vendored
Binary file not shown.
|
@ -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.
Loading…
Reference in a new issue