<!-- Copyright 2002 Sun Microsystems, Inc. All rights reserved.
SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
--><projectname="Webclient Unit Tests"default="run.test"basedir="."><!-- This is a generic build.xml file for Ant that is used to run the
Webclient unit tests. This build file *must* be called from the
build.xml file in order to inherit most of it's needed properties
(See below for the list of these properties).
--><!-- ========== Prerequisite Properties =================================== --><!-- These properties MUST be set on the "ant" command line, the "antrc"
properties file in your home directory, or from settings in a superior
build.xml script.
build.home Base directory into which we are building
the Struts components.
servlet.jar The servlet jar (either 2.2 or 2.3)
cactus.jar The Cactus jar (either for Servlet API
2.2 or 2.3)
cactus.ant.jar The Cactus custom Ant tasks jar
httpclient.jar The Cactus httpclient jar
junit.jar The JUnit jar
tomcat.home The home directory of where Tomcat 4.0
is installed
compile.debug The debug mode for compilation
compile.deprecation The deprecation mode for compilation
compile.optimize The optimization mode for compilation
src.dir The location of the source directory
app.name The name of the Struts jar (without the
'.jar' suffix
--><!-- ========== Initialization Properties ================================= --><!-- ========== Derived Properties ======================================== --><!-- These property values are derived from values defined above, and
generally should NOT be overridden by command line settings
--><!-- Default value for debugging arguments is no. Override in
build.properties --><propertyname="debug.jvm.args"value=""/><!-- Source directory for tests --><propertyname="src.test.dir"value="${basedir}/test/automated/src/classes"/><!-- Output directory for tests --><propertyname="out.test.dir"value="${build.home}/test"/><!-- Output directory for test data files --><propertyname="build.test"value="${basedir}/build.test"/><propertyname="native.waitForDebugger"value=""/><pathid="test.classpath"><pathelementlocation="${junit.jar}"/><pathelementlocation="${build.home}"/><pathelementlocation="${out.test.dir}/classes"/></path><!-- ========== Executable Targets ======================================== --><!-- Compile unit tests
--><targetname="compile.test"><echomessage="${build.home}"/><mkdirdir="${out.test.dir}/classes"/><javacdestdir="${out.test.dir}/classes"debug="${compile.debug}"optimize="${compile.optimize}"deprecation="${compile.deprecation}"><classpathrefid="test.classpath"/><srcpath="${src.test.dir}"/><patternset><excludename="**/*Win32*.java"if="build.unix.classes"/></patternset><patternset><excludename="**/*Gtk*.java"if="build.win32.classes"/></patternset></javac></target><targetname="copy-test-data-files"><!-- Copy Unit test static files. --><mkdirdir="${build.test}"/><copytodir="${build.test}"><filesetdir="${basedir}/test/automated/src/test"/></copy></target><targetname="clean"><deletedir="${out.test.dir}/classes"/><deletedir="${build.test}"/></target><targetname="run.test"depends="compile.test,copy-