<!--
  JBoss, Home of Professional Open Source
  Copyright 2006, Red Hat Middleware LLC, and individual contributors
  as indicated by the @author tags.
  See the copyright.txt in the distribution for a full listing
  of individual contributors.
  This copyrighted material is made available to anyone wishing to use,
  modify, copy, or redistribute it subject to the terms and conditions
  of the GNU Lesser General Public License, v. 2.1.
  This program is distributed in the hope that it will be useful, but WITHOUT A
  WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
  PARTICULAR PURPOSE.  See the GNU Lesser General Public License for more details.
  You should have received a copy of the GNU Lesser General Public License,
  v.2.1 along with this distribution; if not, write to the Free Software
  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
  MA  02110-1301, USA.


  (C) 2005-2006,
  @author JBoss Inc.
-->
<project name="WSCF" default="com.arjuna.mw.wscf.war" basedir=".">
	<!-- Set module name -->
	<property name="com.arjuna.mwlabs.ts.modulename" value="wscf"/>

	<!-- Set default properties filename -->
	<property name="com.arjuna.mw.wscf.properties" value="wscf.properties"/>

	<!-- Load Build Properties File -->
	<property file="${com.arjuna.mw.wscf.properties}"/>

	<!-- Set hostname and port property defaults -->
	<property environment="env"/>
	<property name="jboss.home" value="${env.JBOSS_HOME}"/>
	<property name="jboss.server" value="default"/>
	<property name="jboss.lib.dir" location="${jboss.home}/lib"/>
	<property name="jboss.client.lib.dir" location="${jboss.home}/client"/>
	<property name="jboss.server.dir" location="${jboss.home}/server/${jboss.server}"/>
	<property name="jboss.server.lib.dir" location="${jboss.server.dir}/lib"/>
    <property name="jboss.common.lib.dir" location="${jboss.home}/common/lib"/>

	<property name="deploy.dir" value="${jboss.server.dir}/deploy"/>

	<!-- Set internal property defaults -->
	<!-- Path names -->
    <property name="com.arjuna.mwlabs.wscf.src" value="classes"/>
    <property name="com.arjuna.mwlabs.wscf.src10" value="classes10"/>
    <property name="com.arjuna.mwlabs.wscf.src11" value="classes11"/>
	<property name="com.arjuna.mwlabs.wscf.dest.root" value="build"/>
    <property name="com.arjuna.mwlabs.wscf.dest" value="build/classes"/>
    <property name="com.arjuna.mwlabs.wscf.dest10" value="build/classes10/classes"/>
    <property name="com.arjuna.mwlabs.wscf.dest11" value="build/classes11/classes"/>
	<property name="com.arjuna.mwlabs.wscf.jar.dest" value="build/lib"/>
	<property name="com.arjuna.mwlabs.wscf.war.dest" value="build/webapps"/>
	<property name="com.arjuna.mwlabs.wscf.htdocs.dest" value="build/htdocs"/>

	<!-- test path names -->
	<property name="com.arjuna.mwlabs.wscf.tests.src" value="tests/classes"/>
	<property name="com.arjuna.mwlabs.wscf.tests.dd" value="tests/dd"/>
	<property name="com.arjuna.mwlabs.wscf.tests.dest.root" value="tests/build"/>
	<property name="com.arjuna.mwlabs.wscf.tests.dest" value="tests/build/classes"/>
	<property name="com.arjuna.mwlabs.wscf.tests.dd.dest" value="tests/build/dd"/>
	<property name="com.arjuna.mwlabs.wscf.tests.webapps.dest" value="tests/build/webapps"/>
	<property name="com.arjuna.mwlabs.wscf.tests.jar.dest" value="tests/build/lib"/>

    <property name="com.arjuna.buildsystem.dir" location="../../antbuildsystem"/>
    <property name="com.arjuna.jta.install" location="../../install"/>

    <property name="com.arjuna.buildsystem.lib" location="${com.arjuna.buildsystem.dir}/build/lib"/>
    <property name="com.arjuna.jta.install.lib" location="${com.arjuna.jta.install}/lib"/>
    <property name="com.arjuna.jta.install.ext" location="${com.arjuna.jta.install.lib}/ext"/>
    <property name="com.arjuna.xts.ext" location="../ext"/>

    <property name="com.arjuna.buildsystem.lib.jars" value="buildsystem.jar"/>

    <property name="jta.lib.jars" value="jbossjta.jar jbossjts.jar"/>
    <property name="jta.ext.jars" value="jbossts-common.jar"/>
    <property name="jta.ext.compile.jars" value="commons-logging-1.1.jar jta-1_1-classes.zip"/>
    <property name="jboss.client.lib.jars" value="jaxb-api.jar jboss-javaee.jar jbossws-native-jaxrpc.jar
            jbossws-native-jaxws.jar jbossws-client.jar stax-api.jar jbossws-native-saaj.jar
            jbossws-native-jaxws-ext.jar jbossws-native-core.jar jbossws-common.jar jboss-logging-spi.jar"/>
    <property name="jboss.common.lib.jars" value="servlet-api.jar"/>
    <property name="jboss.lib.jars" value="dom4j.jar"/>

    <property name="wsas.libs" value="wsas.jar"/>
    <property name="wsc.libs" value="ws-c.jar"/>
    <property name="wsc.api.libs" value="ws-c-api.jar"/>
    <property name="wsc10.libs" value="ws-c10.jar"/>
    <property name="wsc11.libs" value="ws-c11.jar"/>

    <property name="com.arjuna.mwlabs.wscf.resourcebundle"
	      value="wscf_msg_en_US.properties"/>

	<!--Set external directories -->

	<property name="com.arjuna.mwlabs.wsas.jar.dest" value="../WSAS/build/lib"/>
	<property name="com.arjuna.mwlabs.wsc.jar.dest" value="../WS-C/build/dev/lib"/>

    <!-- Define classpath builder task -->
    <path id="com.arjuna.buildsystem.classpath">
        <fileset dir="${com.arjuna.buildsystem.lib}" includes="${com.arjuna.buildsystem.lib.jars}"/>
    </path>
    <property name="com.arjuna.buildsystem.classpath" refid="com.arjuna.buildsystem.classpath"/>
	<taskdef name="classpath-builder" classname="com.hp.mw.buildsystem.ant.ClasspathBuilder" classpathref="com.arjuna.buildsystem.classpath"/>
	<!-- class path behaviour -->
	<property name="build.sysclasspath" value="last"/>
	<property name="com.arjuna.mwlabs.classpathbuilderfilename" location="buildsystem.classpath"/>

	<path id="com.arjuna.mwlabs.wscf.lib.classpath">
        <fileset dir="${com.arjuna.jta.install.lib}" includes="${jta.lib.jars}"/>
        <fileset dir="${com.arjuna.jta.install.ext}" includes="${jta.ext.jars} ${jta.ext.compile.jars}"/>
        <fileset dir="${jboss.client.lib.dir}" includes="${jboss.client.lib.jars}"/>
        <fileset dir="${jboss.common.lib.dir}" includes="${jboss.common.lib.jars}"/>
        <fileset dir="${com.arjuna.mwlabs.wsas.jar.dest}" includes="${wsas.libs}"/>
        <fileset dir="${com.arjuna.mwlabs.wsc.jar.dest}" includes="${wsc.libs} ${wsc.api.libs}"/>
    </path>

	<!-- tests library and path to library -->
	<property name="tests.libs" value="junit.jar"/>
	<property name="tests.depend.libs" value="${tests.libs} ${com.arjuna.mwlabs.ts.modulename}.jar"/>
	<property name="tests.depend.libs" value="${tests.libs} ${com.arjuna.mwlabs.ts.modulename}.jar"/>

	<path id="com.arjuna.mwlabs.wscf.tests.lib.path">
	  <fileset dir="${com.arjuna.xts.ext}" includes="${tests.libs}"/>
	  <fileset dir="${jboss.lib.dir}" includes="${jboss.lib.jars}"/>
	</path>

	<!-- Initialisation -->
	<target name="com.arjuna.mwlabs.wscf.init">
		<!-- Define default build properties -->
		<tstamp>
			<format property="com.arjuna.mw.wscf.date" pattern="yyyy/mm/dd hh:mm aa"/>
		</tstamp>
		<!-- Make the destination directory -->
        <mkdir dir="${com.arjuna.mwlabs.wscf.dest}"/>
        <mkdir dir="${com.arjuna.mwlabs.wscf.dest10}"/>
        <mkdir dir="${com.arjuna.mwlabs.wscf.dest11}"/>
		<mkdir dir="${com.arjuna.mwlabs.wscf.war.dest}"/>
	</target>

	<!-- Compilation targets -->
	<target name="com.arjuna.mw.wscf.compile"
	depends="com.arjuna.mwlabs.wscf.compile,
		com.arjuna.mw.wscf.htdocs, com.arjuna.mwlabs.wscf.generateresourcebundle"/>

    <target name="com.arjuna.mwlabs.wscf.compile" depends="com.arjuna.mwlabs.wscf.compile10, com.arjuna.mwlabs.wscf.compile11"/>
    <target name="com.arjuna.mwlabs.wscf.compile11" depends="com.arjuna.mwlabs.wscf.compile-generic">
		<echo message="Compiling module 1.1 code"/>
		<javac srcdir="${com.arjuna.mwlabs.wscf.src11}"
                       destdir="${com.arjuna.mwlabs.wscf.dest11}"
                       debug="on">
			<classpath>
                <path>
                    <pathelement path="${com.arjuna.mwlabs.wscf.dest}"/>
                    <pathelement path="${com.arjuna.mwlabs.wsc.jar.dest}/${wsc11.libs}"/>
                </path>
				<path refid="com.arjuna.mwlabs.wscf.lib.classpath"/>
			</classpath>
		</javac>
	</target>
    <target name="com.arjuna.mwlabs.wscf.compile10" depends="com.arjuna.mwlabs.wscf.compile-generic">
		<echo message="Compiling module 1.0 code"/>
		<javac srcdir="${com.arjuna.mwlabs.wscf.src10}"
                       destdir="${com.arjuna.mwlabs.wscf.dest10}"
                       debug="on">
			<classpath>
                <path>
                    <pathelement path="${com.arjuna.mwlabs.wscf.dest}"/>
                    <pathelement path="${com.arjuna.mwlabs.wsc.jar.dest}/${wsc10.libs}"/>
                </path>
				<path refid="com.arjuna.mwlabs.wscf.lib.classpath"/>
			</classpath>
		</javac>
	</target>
    <target name="com.arjuna.mwlabs.wscf.compile-generic" depends="com.arjuna.mwlabs.wscf.init">
		<echo message="Compiling module generic code"/>
		<javac srcdir="${com.arjuna.mwlabs.wscf.src}"
                       destdir="${com.arjuna.mwlabs.wscf.dest}"
                       debug="on">
			<classpath>
				<path refid="com.arjuna.mwlabs.wscf.lib.classpath"/>
			</classpath>
		</javac>
	</target>

	<!-- htdocs paths -->
	<path id="com.arjuna.mw.wscf.htdocs.path">
		<pathelement path="classes"/>
	</path>

	<!-- Build htdocs for just mw, or mw and mwlabs -->
	<property name="com.arjuna.mwlabs.wscf.htdocs.list"
	value="com.arjuna.mw.*"/>

	<target name="com.arjuna.mw.wscf.war" depends="com.arjuna.mw.wscf.jar">
	  <war warfile="${com.arjuna.mwlabs.wscf.war.dest}/${com.arjuna.mwlabs.ts.modulename}10.war" webxml="xml/wscf_web-app.xml"/>
        <war warfile="${com.arjuna.mwlabs.wscf.war.dest}/${com.arjuna.mwlabs.ts.modulename}11.war" webxml="xml/wscf11_web-app.xml"/>
	</target>

	<!-- Jar targets -->
    <target name="com.arjuna.mw.wscf.jar" depends="com.arjuna.mw.wscf.jar11, com.arjuna.mw.wscf.jar10"/>

    <target name="com.arjuna.mw.wscf.jar11" depends="com.arjuna.mw.wscf.jar-generic">
        <copy file="xml/ArjunaCoreHLS.xml"
        tofile="${com.arjuna.mwlabs.wscf.dest11}/com/arjuna/mwlabs/wscf/model/as/coordinator/arjunacore/ArjunaCoreHLS.xml"/>
        <copy file="xml/JTAHLS.xml"
        tofile="${com.arjuna.mwlabs.wscf.dest11}/com/arjuna/mwlabs/wscf/model/as/coordinator/jta/JTAHLS.xml"/>
        <copy file="xml/TwoPhase11HLSImple.xml"
        tofile="${com.arjuna.mwlabs.wscf.dest11}/com/arjuna/mwlabs/wscf11/model/twophase/arjunacore/TwoPhaseHLSImple.xml"/>
        <copy file="xml/Sagas11HLSImple.xml"
        tofile="${com.arjuna.mwlabs.wscf.dest11}/com/arjuna/mwlabs/wscf11/model/sagas/arjunacore/SagasHLSImple.xml"/>

        <jar jarfile="${com.arjuna.mwlabs.wscf.jar.dest}/${com.arjuna.mwlabs.ts.modulename}11.jar"
            basedir="${com.arjuna.mwlabs.wscf.dest11}">
        </jar>
    </target>

    <target name="com.arjuna.mw.wscf.jar10" depends="com.arjuna.mw.wscf.jar-generic">
        <copy file="xml/ArjunaCoreHLS.xml"
        tofile="${com.arjuna.mwlabs.wscf.dest10}/com/arjuna/mwlabs/wscf/model/as/coordinator/arjunacore/ArjunaCoreHLS.xml"/>
        <copy file="xml/JTAHLS.xml"
        tofile="${com.arjuna.mwlabs.wscf.dest10}/com/arjuna/mwlabs/wscf/model/as/coordinator/jta/JTAHLS.xml"/>
        <copy file="xml/TwoPhaseHLSImple.xml"
        tofile="${com.arjuna.mwlabs.wscf.dest10}/com/arjuna/mwlabs/wscf/model/twophase/arjunacore/TwoPhaseHLSImple.xml"/>
        <copy file="xml/SagasHLSImple.xml"
        tofile="${com.arjuna.mwlabs.wscf.dest10}/com/arjuna/mwlabs/wscf/model/sagas/arjunacore/SagasHLSImple.xml"/>
        <copy file="xml/JTAHLSImple.xml"
        tofile="${com.arjuna.mwlabs.wscf.dest10}/com/arjuna/mwlabs/wscf/model/jta/arjunajta/JTAHLSImple.xml"/>

        <jar jarfile="${com.arjuna.mwlabs.wscf.jar.dest}/${com.arjuna.mwlabs.ts.modulename}10.jar"
            basedir="${com.arjuna.mwlabs.wscf.dest10}">
        </jar>
    </target>

    <target name="com.arjuna.mw.wscf.jar-generic" depends="com.arjuna.mw.wscf.compile">
        <echo message="Building jar files"/>
        <mkdir dir="${com.arjuna.mwlabs.wscf.jar.dest}"/>
        <jar jarfile="${com.arjuna.mwlabs.wscf.jar.dest}/${com.arjuna.mwlabs.ts.modulename}.jar"
            basedir="${com.arjuna.mwlabs.wscf.dest}">
        </jar>
    </target>


	<target name="com.arjuna.mw.wscf.htdocs"
				depends="com.arjuna.mwlabs.wscf.init">
		<echo message="Building htdocs "/>
		<mkdir dir="${com.arjuna.mwlabs.wscf.htdocs.dest}"/>
		<path id="com.arjuna.mwlabs.wscf.htdocs.path">
			<path refid="com.arjuna.mw.wscf.htdocs.path"/>
		</path>

		<javadoc
			sourcepathref="com.arjuna.mwlabs.wscf.htdocs.path"
			destdir="${com.arjuna.mwlabs.wscf.htdocs.dest}"
			packagenames="${com.arjuna.mwlabs.wscf.htdocs.list}"
	        >
			<classpath>
				<path refid="com.arjuna.mwlabs.wscf.lib.classpath"/>
				<path path="${com.arjuna.mwlabs.wscf.src}"/>
			</classpath>
		</javadoc>
	</target>

        <target name="com.arjuna.mwlabs.wscf.generateresourcebundle">

            <echo message="Generating WSCF Bundle"/>

            <classpath-builder filename="${com.arjuna.mwlabs.classpathbuilderfilename}" inproperty="build.classpath"/>

            <javadoc    packagenames="com.arjuna.*"
                        failonerror="yes"
                        private="yes"
                        defaultexcludes="yes"
                        classpath="${build.classpath}">

                <packageset dir="${com.arjuna.mwlabs.wscf.src}" defaultexcludes="yes">
                  <include name="com/arjuna/**"/>
                </packageset>

                <packageset dir="${com.arjuna.mwlabs.wscf.src10}" defaultexcludes="yes">
                  <include name="com/arjuna/**"/>
                </packageset>

                <packageset dir="${com.arjuna.mwlabs.wscf.src11}" defaultexcludes="yes">
                  <include name="com/arjuna/**"/>
                </packageset>

                 <doclet name="com.hp.mw.buildsystem.doclet.resbundledoclet.ResourceBundleDoclet">
                    <path>
                        <pathelement path="${com.arjuna.buildsystem.classpath}"/>
                    </path>
                    <param name="-basedir" value="${basedir}/${com.arjuna.mwlabs.wscf.dest}"/>
                    <param name="-resourcebundle" value="${com.arjuna.mwlabs.wscf.resourcebundle}"/>
                 </doclet>
            </javadoc>

        </target>

	<!-- test targets -->
	<target name="com.arjuna.mwlabs.wscf.tests.init">
        <!-- delete the test destination directories -->
        <delete dir="${com.arjuna.mwlabs.wscf.tests.dest.root}"/>
		<!-- make the test destination directories -->
		<mkdir dir="${com.arjuna.mwlabs.wscf.tests.dest.root}"/>
		<mkdir dir="${com.arjuna.mwlabs.wscf.tests.dest}"/>
		<mkdir dir="${com.arjuna.mwlabs.wscf.tests.dd.dest}"/>
		<mkdir dir="${com.arjuna.mwlabs.wscf.tests.webapps.dest}"/>
		<mkdir dir="${com.arjuna.mwlabs.wscf.tests.jar.dest}"/>
	</target>
    
    <!-- this assumes the required libs have already been built-->
	<target name="com.arjuna.mwlabs.wscf.tests.compile" depends="com.arjuna.mwlabs.wscf.tests.init">
	  <javac destdir="${com.arjuna.mwlabs.wscf.tests.dest}" debug="yes" optimize="no">
	    <classpath>
	      <pathelement path="${com.arjuna.mwlabs.wscf.jar.dest}/${com.arjuna.mwlabs.ts.modulename}.jar"/>
          <pathelement path="${com.arjuna.mwlabs.wscf.jar.dest}/${com.arjuna.mwlabs.ts.modulename}10.jar"/>
          <pathelement path="${com.arjuna.mwlabs.wscf.jar.dest}/${com.arjuna.mwlabs.ts.modulename}11.jar"/>
          <pathelement path="${com.arjuna.mwlabs.wsc.jar.dest}/${wsc10.libs}"/>
          <pathelement path="${com.arjuna.mwlabs.wsc.jar.dest}/${wsc11.libs}"/>
	      <path refid="com.arjuna.mwlabs.wscf.tests.lib.path"/>
	      <path refid="com.arjuna.mwlabs.wscf.lib.classpath"/>
	    </classpath>
	    <src path="${com.arjuna.mwlabs.wscf.tests.src}"/>
	  </javac>
	</target>

    <!-- this assumes the required libs have already been built-->
	<target name="com.arjuna.mwlabs.wscf.tests.compile11" depends="com.arjuna.mwlabs.wscf.tests.init">
	  <javac destdir="${com.arjuna.mwlabs.wscf.tests.dest}" debug="yes" optimize="no">
	    <classpath>
	      <pathelement path="${com.arjuna.mwlabs.wscf.jar.dest}/${com.arjuna.mwlabs.ts.modulename}.jar"/>
          <pathelement path="${com.arjuna.mwlabs.wscf.jar.dest}/${com.arjuna.mwlabs.ts.modulename}11.jar"/>
          <pathelement path="${com.arjuna.mwlabs.wsc.jar.dest}/${wsc11.libs}"/>
	      <path refid="com.arjuna.mwlabs.wscf.tests.lib.path"/>
	      <path refid="com.arjuna.mwlabs.wscf.lib.classpath"/>
	    </classpath>
	    <src path="${com.arjuna.mwlabs.wscf.tests.src}"/>
        <exclude name="com/arjuna/wscf/**"/>
	  </javac>
	</target>

    <target name="com.arjuna.mwlabs.wscf.tests.webapps" depends="com.arjuna.mwlabs.wscf.tests.compile">
        <copy file="${com.arjuna.mwlabs.wscf.tests.dd}/wscf-tests_web-app.xml" tofile="${com.arjuna.mwlabs.wscf.tests.dd.dest}/web-app.xml">
        </copy>
        <copy file="${com.arjuna.mwlabs.wscf.tests.dd}/wscf11-tests_web-app.xml" tofile="${com.arjuna.mwlabs.wscf.tests.dd.dest}/web-app11.xml">
        </copy>
        <jar jarfile="${com.arjuna.mwlabs.wscf.tests.webapps.dest}/wscf-tests.jar">
            <fileset dir="${com.arjuna.mwlabs.wscf.tests.dest}"/>
        </jar>
        <war warfile="${com.arjuna.mwlabs.wscf.tests.webapps.dest}/wscf-tests.war" webxml="${com.arjuna.mwlabs.wscf.tests.dd.dest}/web-app.xml"/>
        <war warfile="${com.arjuna.mwlabs.wscf.tests.webapps.dest}/wscf11-tests.war" webxml="${com.arjuna.mwlabs.wscf.tests.dd.dest}/web-app11.xml"/>
        <ear earfile="${com.arjuna.mwlabs.wscf.tests.webapps.dest}/wscf-tests.ear" appxml="${com.arjuna.mwlabs.wscf.tests.dd}/wscf-tests_application.xml">
            <!-- we only need to deploy the ext test libs (junit) and
	         the tests war in JBoss AS 5.0. the rest of the XTS
	         code is deployed as a sar and the TS code is deployed
	         in the server lib
	         -->
            <fileset dir="${com.arjuna.xts.ext}" includes="${tests.libs}"/>
            <fileset dir="${com.arjuna.mwlabs.wscf.tests.webapps.dest}" includes="wscf-tests.war wscf11-tests.war wscf-tests.jar"/>
        </ear>
    </target>

    <target name="com.arjuna.mwlabs.wscf.tests.webapps11" depends="com.arjuna.mwlabs.wscf.tests.compile11">
        <copy file="${com.arjuna.mwlabs.wscf.tests.dd}/wscf11-tests_web-app.xml" tofile="${com.arjuna.mwlabs.wscf.tests.dd.dest}/web-app11.xml">
        </copy>
        <jar jarfile="${com.arjuna.mwlabs.wscf.tests.webapps.dest}/wscf-tests.jar">
            <fileset dir="${com.arjuna.mwlabs.wscf.tests.dest}"/>
        </jar>
        <war warfile="${com.arjuna.mwlabs.wscf.tests.webapps.dest}/wscf11-tests.war" webxml="${com.arjuna.mwlabs.wscf.tests.dd.dest}/web-app11.xml"/>
        <ear earfile="${com.arjuna.mwlabs.wscf.tests.webapps.dest}/wscf-tests.ear" appxml="${com.arjuna.mwlabs.wscf.tests.dd}/wscf11-tests_application.xml">
            <!-- we only need to deploy the ext test libs (junit) and
	         the tests war in JBoss AS 5.0. the rest of the XTS
	         code is deployed as a sar and the TS code is deployed
	         in the server lib
	         -->
            <fileset dir="${com.arjuna.xts.ext}" includes="${tests.libs}"/>
            <fileset dir="${com.arjuna.mwlabs.wscf.tests.webapps.dest}" includes="wscf11-tests.war wscf-tests.jar"/>
        </ear>
    </target>

    <target name="com.arjuna.mwlabs.wscf.tests.deploy" depends="com.arjuna.mwlabs.wscf.tests.webapps, com.arjuna.mwlabs.wscf.tests.undeploy">
        <copy file="${com.arjuna.mwlabs.wscf.tests.webapps.dest}/wscf-tests.ear" tofile="${deploy.dir}/wscf-tests.ear"/>
    </target>

    <target name="com.arjuna.mwlabs.wscf.tests.deploy11" depends="com.arjuna.mwlabs.wscf.tests.webapps11, com.arjuna.mwlabs.wscf.tests.undeploy">
        <copy file="${com.arjuna.mwlabs.wscf.tests.webapps.dest}/wscf-tests.ear" tofile="${deploy.dir}/wscf-tests.ear"/>
    </target>

    <target name="com.arjuna.mwlabs.wscf.tests.undeploy">
        <delete file="${deploy.dir}/wscf-tests.ear"/>
    </target>

    <!-- Clean targets -->
    <target name="com.arjuna.mw.wscf.clean">
        <echo message="Cleaning module"/>
        <delete dir="${com.arjuna.mwlabs.wscf.dest}"/>
        <delete dir="${com.arjuna.mwlabs.wscf.dest.root}"/>
        <delete dir="${com.arjuna.mwlabs.wscf.htdocs.dest}"/>
        <delete file="${com.arjuna.mwlabs.wscf.jar.dest}/${com.arjuna.mwlabs.ts.modulename}.jar"/>
        <delete file="${com.arjuna.mwlabs.wscf.info.dest}"/>
        <!-- delete the test destination directories -->
        <delete dir="${com.arjuna.mwlabs.wscf.tests.dest.root}"/>
    </target>

    <!-- Short target names -->
    <target name="compile" depends="com.arjuna.mw.wscf.compile"/>
    <target name="jar" depends="com.arjuna.mw.wscf.jar"/>
    <target name="war" depends="com.arjuna.mw.wscf.war"/>
    <target name="clean" depends="com.arjuna.mw.wscf.clean"/>
    <target name="tests-webapps" depends="com.arjuna.mwlabs.wscf.tests.webapps"/>
    <target name="tests-webapps11" depends="com.arjuna.mwlabs.wscf.tests.webapps11"/>
    <!-- production target for 1.1 tests -->
    <target name="tests-11" depends="tests-webapps11"/>
    <target name="tests-both" depends="tests-webapps"/>
    <target name="tests-deploy" depends="com.arjuna.mwlabs.wscf.tests.deploy"/>
    <target name="tests-deploy11" depends="tests-webapps11"/>
    <target name="tests-undeploy" depends="com.arjuna.mwlabs.wscf.tests.undeploy"/>
</project>
