All pastes #619489 Raw Edit

Someone

public text v1 · immutable
·published 2007-07-14 19:50 UTC
rendered paste body
<project name="xplanner" default="build.war" basedir=".">

   <!-- The xplanner.overrides filename can be set with a System property (-D option) -->
   <property file="machine-specific.properties"/>
   <property name="xplanner.overrides" value="xplanner-custom.properties"/>
   <property name="resources" value="resources"/>

   <property file="${resources}/${xplanner.overrides}"/>
   <property file="${resources}/xplanner.properties"/>
   <property name="installer" value="installer"/>
   <property name="version" value="${xplanner.version}"/>
   <property name="build" location="build"/>
   <property name="webapp.war" value="${build}/xplanner.war"/>
   <property name="classes" value="build/classes"/>
   <property name="product.classes" location="${classes}/product"/>
   <property name="test.classes" location="${classes}/test"/>
   <property name="test.reports" location="build/test-reports"/>
   <property name="acceptance.test.reports" location="build/acceptance-test-reports"/>
   <property name="performance.test.reports" location="build/performance-test-reports"/>
   <property name="soap.classes" location="${classes}/soap"/>
   <property name="dist" location="dist"/>
   <property name="dist.jars" location="${dist}/jars"/>
   <property name="build.libs" location="build/libs"/>
   <property name="build.reports" location="${product.classes}/com/technoetic/xplanner/export/reports"/>
   <property name="build.reportstemp" location="build/reports-temp"/>
   <property name="thirdparty.jars" location="lib"/>
   <property name="java.debug" value="on"/>
   <property name="soap.stubs" location="soap-stubs"/>
   <property name="cewolf.tld" value="cewolf/cewolf-1.1.tld"/>
   <property name="overlib.js" value="cewolf/overlib.js"/>
   <!-- Cewolf etc destination etc files -->
   <property name="war_overlib.js" location="war/overlib.js"/>
   <property name="webinf_cewolf.tld" location="war/WEB-INF/cewolf-1.1.tld"/>

   <path id="additional.classpath" description="Empty path which can be overriden"/>

   <path id="common.classpath" description="Common classpath to all executable">
     <pathelement path="${product.classes}"/>
     <path refid="additional.classpath"/>
     <!--<pathelement path="${resources}"/>-->
   </path>

   <path id="tools.classpath">
      <path refid="common.classpath"/>
      <fileset dir="${thirdparty.jars}">
         <include name="**/*.jar"/>
      </fileset>
   </path>

   <path id="webapp.classpath">
     <path refid="common.classpath"/>
      <fileset dir="${thirdparty.jars}/webapp">
         <include name="**/*.jar"/>
      </fileset>
   </path>

   <path id="product.classpath">
     <path refid="common.classpath"/>
      <fileset dir="${thirdparty.jars}">
         <include name="webapp/**/*.jar"/>
         <include name="dev/**/*.jar"/>
      </fileset>
   </path>

   <path id="test.classpath">
     <path refid="tools.classpath"/>
     <pathelement path="${soap.classes}"/>
     <pathelement path="${test.classes}"/>
     <pathelement path="war/WEB-INF"/>
   </path>

   <target name="_init" depends="_init.svn">
      <tstamp>
         <format property="datestamp" pattern="MM/dd/yyyy"/>
      </tstamp>
   </target>

   <target name="all" description="full install and testing. Tomcat must be already running" depends="clean, regenerate.soap.stubs, acceptance.tests"/>

   <target name="clean.build" depends="_init">
      <delete dir="${build}" failonerror="false"/>
   </target>

   <target name="clean.classes" depends="_init">
      <delete dir="${classes}"/>
   </target>

   <target name="clean.dist">
      <delete dir="${dist}"/>
   </target>

   <target name="clean.etc" depends="_init">
      <delete file="${war_overlib.js}"/>
      <delete file="${webinf_cewolf.tld}"/>
   </target>

   <target name="clean" depends="_init,clean.build,clean.dist,clean.etc,clean.soap"
       description="clean all generated files">
      <delete dir="${test.reports}"/>
   </target>

  <!-- =================================================================== -->
  <!-- Compilation targets                                                 -->
  <!-- =================================================================== -->

   <target name="build.product" depends="_build.prepare.etc,compile.reports" description="build xplanner">
      <mkdir dir="${product.classes}"/>
      <copy todir="${product.classes}" overwrite="true">
         <fileset dir="src">
            <exclude name="**/*.class"/>
         </fileset>
      </copy>
      <javac srcdir="src" destdir="${product.classes}" classpathref="product.classpath" nowarn="on" debug="${java.debug}"/>
   </target>

  <target name="compile.reports" depends="_init">
     <taskdef name="jrc" classname="dori.jasper.ant.JRAntCompileTask" classpathref="tools.classpath"/>
     <mkdir dir="${build.reports}"/>
     <!-- <delete dir="${build.reports}" /> -->
     <!-- <delete dir="${build.reportstemp}" /> -->
     <mkdir dir="${build.reportstemp}"/>
     <jrc destdir="${build.reports}" tempdir="${build.reportstemp}" keepjava="true" xmlvalidation="true" >
        <src>
           <fileset dir="./src/com/technoetic/xplanner/export/reports">
              <include name="**/*.jrxml"/>
           </fileset>
        </src>
        <classpath refid="tools.classpath"/>
     </jrc>
  </target>

  <target name="build.tests" depends="_init,regenerate.soap.stubs,build.product">
     <mkdir dir="${test.classes}"/>
     <mkdir dir="src-test-inprogress"/>
     <javac destdir="${test.classes}" nowarn="yes" debug="${java.debug}" classpathref="test.classpath">
        <exclude name="**/ftest/**/"/>
        <src>
           <pathelement path="src-test"/>
           <pathelement path="src-test-inprogress"/>
        </src>
     </javac>
  </target>

   <target name="build.war" description="assemble war"
      depends="_build.prepare.etc, build.product,_build.prepare.libs">
      <delete file="${webapp.war}"/>
      <war destfile="${webapp.war}" webxml="war/WEB-INF/web.xml" duplicate="fail">
         <classes dir="${product.classes}" excludes="log4j*.xml"/>
         <lib dir="${build.libs}"/>
         <fileset dir="war">
            <exclude name="**/WEB-INF/web.xml"/>
            <exclude name="**/WEB-INF/classes/**/*"/>
            <exclude name="**/WEB-INF/lib/**/*"/>
            <exclude name="**/*~"/>
            <exclude name="**/.svn"/>
            <exclude name="**/META-INF/context.xml"/>
         </fileset>
         <fileset dir="war" includes="**/WEB-INF/classes/log4j.xml"/>
         <metainf dir="war/META-INF"/>
      </war>
     <echo message="build.war finished"/>
   </target>

  <target name="_build.prepare.libs" depends="_init">
     <delete dir="${build.libs}"/>
     <mkdir dir="${build.libs}"/>
     <copy todir="${build.libs}" flatten="true">
        <fileset dir="${thirdparty.jars}/webapp">
           <include name="**/*.jar"/>
        </fileset>
     </copy>
  </target>

  <target name="_build.prepare.etc" depends="_init,svn.get.revision">
     <copy todir="${product.classes}" overwrite="true">
        <fileset dir="${resources}">
           <include name="**"/>
           <!--<exclude name="xplanner-custom-*.properties"/>-->
        </fileset>
        <filterset begintoken="@" endtoken="@">
           <filter token="BUILD_REVISION" value="${revision}"/>
           <filter token="BUILD_DATE" value="${datestamp}"/>
        </filterset>
     </copy>
     <copy todir="war" flatten="true">
        <fileset dir="${thirdparty.jars}/webapp">
           <include name="${overlib.js}"/>
        </fileset>
     </copy>
     <copy todir="war/WEB-INF" flatten="true" overwrite="true">
        <fileset dir="${thirdparty.jars}/webapp">
           <include name="${cewolf.tld}"/>
        </fileset>
     </copy>
     <copy tofile="war/WEB-INF/classes/log4j.xml" overwrite="true" file="${resources}/log4j-war.xml" failonerror="true"/>
  </target>

  <!-- =================================================================== -->
  <!-- IDE support targets                                                -->
  <!-- =================================================================== -->

  <target name="ide.after.clean" depends="_build.prepare.etc, compile.reports, regenerate.soap.stubs"
          description="target to run when building from inside an IDE after a project has been cleaned and is about to be rebuilt"/>

  <target name="ide.before.run"
          description="target to run before any compile and run"/>

  <!-- =================================================================== -->
  <!-- Distribution targets                                                -->
  <!-- =================================================================== -->

   <patternset id="dist.files">
      <include name="license.txt"/>
      <include name="src/**/*"/>
      <include name="src-test/**/*"/>
      <exclude name="doc/**/*"/>
      <include name="sql/**/*"/>
      <exclude name="${resources}/*custom*.properties"/>
      <include name="${resources}/**/*"/>
      <include name="build.xml"/>
      <exclude name="war/WEB-INF/classes/**/*"/>
      <include name="war/**/*"/>
   </patternset>

   <target name="build.dist" description="build all distributions">
     <antcall target="build.bin.dist"/>
     <antcall target="build.src.dist"/>
   </target>

  <target name="build.bin.dist" depends="clean, svn.update" description="build binary distribution">
    <antcall target="build.bin.standalone.dist" inheritall="true"/>
    <antcall target="build.bin.war.dist"/>
  </target>

  <property name="dist.name.prefix" value="xplanner-${version}"/>

  <target name="release" depends="build.bin.dist, upload.to.sourceforge" description="build a distribution and upload it to sourceforge"/>

  <target name="upload.to.sourceforge" description="Upload the binary distribution to sourceforge">
    <ftp server="upload.sourceforge.net"
         userid="anonymous"
         password="jacmorel@xplanner.org"
         remotedir="/incoming"
         verbose="true"
         binary="true"
         action="send">
      <fileset dir="${dist}">
        <include name="${dist.name.prefix}-*.zip"/>
        <include name="${dist.name.prefix}-*.gz"/>
    </fileset>
    </ftp>
  </target>

  <target name="build.bin.standalone.dist" depends="build.war" description="build binary standalone distribution">
      <property name="dist.name" value="${dist.name.prefix}-standalone"/>
      <property name="dist.dir" value="${dist}/${dist.name}"/>
      <property name="dist.installer.dir" location="${dist.dir}/installer"/>
      <property name="dist.war.dir" location="${dist.dir}/webapps/ROOT"/>
      <property name="installer.common.dir" value="${installer}/common"/>
      <property name="installer.lib.dir" value="${installer}/standalone"/>
      <property name="installer.lib.tomcat.dir" location="${installer.lib.dir}/tomcat"/>
      <property name="tomcat.zip" value="tomcat-5.0.28.zip"/>


    <!-- Setup tomcat -->
      <unzip dest="${dist.dir}" src="${installer.lib.tomcat.dir}/${tomcat.zip}"/>

      <filter token="SERVER_PORT" value="7005"/>
      <filter token="CATALINA_PORT" value="7070"/>
      <copy file="${installer.lib.tomcat.dir}/server.xml" todir="${dist.dir}/conf" failonerror="true" overwrite="true" filtering="true"/>

      <delete dir="${dist.dir}/logs"/>
      <mkdir dir="${dist.dir}/logs"/>
      <delete dir="${dist.dir}/work"/>
      <mkdir dir="${dist.dir}/work"/>

    <copy todir="${dist.dir}" flatten="true">
       <fileset dir=".">
          <include name="license.txt"/>
          <include name="NTLM_README.txt"/>
       </fileset>
    </copy>

    <copy todir="${dist.dir}">
      <fileset dir="${installer.common.dir}">
        <include name="**"/>
      </fileset>
    </copy>

      <copy todir="${dist.dir}" flatten="true" filtering="true">
        <fileset dir="${installer.lib.dir}">
          <exclude name="tomcat/**"/>
        </fileset>
      </copy>

      <unwar dest="${dist.war.dir}" src="${webapp.war}"/>
      <copy file="${resources}/xplanner-custom-standalone-install.properties"
            tofile="${dist.war.dir}/WEB-INF/classes/xplanner-custom.properties" failonerror="true" overwrite="true" filtering="true"/>
      <delete dir="hsqldb" failonerror="true"/>
      <mkdir dir="hsqldb"/>
      <copy file="${resources}/xplanner-custom.properties"
            tofile="${resources}/xplanner-custom-before-standalone-install-backup.properties" failonerror="false" overwrite="true"/>
      <copy file="${resources}/xplanner-custom-standalone-install.properties"
            tofile="${resources}/xplanner-custom.properties" failonerror="true" overwrite="true" filtering="true"/>
      <antcall target="install.db.schema"/>
      <copy file="${resources}/xplanner-custom-before-standalone-install-backup.properties"
            tofile="${resources}/xplanner-custom.properties" failonerror="false" overwrite="true"/>
      <move file="hsqldb" todir="${dist.dir}"/>

      <zip.windows.dist filename="${dist.name}" dir="${dist}"/>

      <zip.unix.dist filename="${dist.name}" dir="${dist}"/>
      <delete dir="${dist.dir}"/>

   </target>

   <target name="build.bin.war.dist" depends="build.war" description="build binary war distribution">
      <property name="dist.name" value="${dist.name.prefix}-war"/>
      <property name="dist.dir" value="${dist}/${dist.name}"/>
      <property name="dist.installer.dir" location="${dist.dir}/installer"/>
      <property name="dist.war.dir" location="${dist.dir}/xplanner"/>
      <property name="installer.lib.dir" value="installer/war"/>
      <property name="installer.common.dir" value="${installer}/common"/>
      <mkdir dir="${dist}"/>
      <delete dir="${dist.dir}"/>
      <unwar dest="${dist.war.dir}" src="${webapp.war}"/>
      <copy file="${resources}/xplanner-custom-war-install.properties"
           tofile="${dist.war.dir}/WEB-INF/classes/xplanner-custom.properties" failonerror="true" overwrite="true"/>
      <copy todir="${dist.dir}" flatten="true">
         <fileset dir=".">
            <include name="license.txt"/>
            <include name="NTLM_README.txt"/>
         </fileset>
      </copy>
      <copy todir="${dist.dir}">
        <fileset dir="${installer.common.dir}">
          <include name="**"/>
        </fileset>
      </copy>
      <copy todir="${dist.installer.dir}">
        <fileset dir="${installer.lib.dir}"/>
      </copy>

     <copy todir="${dist.installer.dir}" flatten="true">
       <fileset dir=".">
         <include name="lib/dev/servlet/servlet-api-2.4.jar"/>
         <include name="build-db.xml"/>
         <include name="build-autopatch.xml"/>
       </fileset>
     </copy>
     <copy todir="${dist.installer.dir}" >
       <fileset dir="${installer.lib.dir}">
         <exclude name="*"/>
       </fileset>
     </copy>
     <!--<copy todir="${dist.installer.dir}">-->
       <!--<fileset dir=".">-->
         <!--<include name="sql/**"/>-->
       <!--</fileset>-->
     <!--</copy>-->
     <zip.all.os.dists filename="${dist.name}" dir="${dist}" />
     <delete dir="${dist.dir}"/>
   </target>

  <macrodef name="zip.all.os.dists">
    <attribute name="filename"/>
    <attribute name="dir"/>
    <sequential>
      <zip.unix.dist filename="@{filename}" dir="@{dir}"/>
      <zip.windows.dist filename="@{filename}" dir="@{dir}"/>
    </sequential>
  </macrodef>

  <macrodef name="zip.windows.dist">
    <attribute name="filename"/>
    <attribute name="dir"/>
    <sequential>
      <property name="file" location="@{dir}/@{filename}"/>
      <zip zipfile="${file}.zip">
        <zipfileset dir="${file}" prefix="@{filename}"/>
      </zip>
    </sequential>
  </macrodef>

  <macrodef name="zip.unix.dist">
    <attribute name="filename"/>
    <attribute name="dir"/>
    <sequential>
      <property name="file" location="@{dir}/@{filename}"/>
      <property name="tar" value="${file}.tar"/>
      <echo message="Tarring ${file}"/>
      <delete file="${tar}"/>
      <fixcrlf srcdir="${file}"
               eol="lf"
               eof="remove"
               includes="**/*.sh"
          />
      <tar destfile="${tar}" longfile="gnu">
        <tarfileset dir="${file}" prefix="@{filename}" excludes="**/*.sh"/>
        <tarfileset dir="${file}" prefix="@{filename}" includes="**/*.sh" mode="755" />
      </tar>
      <gzip zipfile="${tar}.gz" src="${tar}"/>
      <delete file="${tar}"/>
    </sequential>
  </macrodef>


   <target name="build.src.dist" depends="_init" description="build src distribution">
      <property name="dist.name" value="${dist.name.prefix}-src"/>
      <property name="dist.dir" value="${dist}/${dist.name}"/>
      <property name="xplanner.tar" location="${dist.dir}.tar"/>
      <property name="xplanner.zip" location="${dist.dir}.zip"/>
      <mkdir dir="${dist}"/>
      <delete dir="${dist.dir}"/>
      <copy todir="${dist.dir}/lib">
         <fileset dir="${thirdparty.jars}">
            <include name="**/*.jar"/>
            <include name="${cewolf.tld}"/>
            <include name="${overlib.js}"/>
         </fileset>
      </copy>
      <copy todir="${dist.dir}/xplanner">
         <fileset dir=".">
            <patternset refid="dist.files"/>
         </fileset>
      </copy>
      <zip.all.os.dists filename="${dist.name}" dir="${dist}"/>
      <delete dir="${dist.dir}"/>
   </target>

  <!-- =================================================================== -->
  <!-- Testing targets                                       -->
  <!-- =================================================================== -->

  <!--  UNIT TESTING -->
  <target name="pre.unit.tests" depends="build.tests,copy.test.data">
    <delete dir="${test.reports}"/>
    <mkdir dir="${test.reports}"/>
    <echo level="info" message="results in ${test.reports}"/>
  </target>

   <target name="unit.tests" depends="pre.unit.tests" description="run unit tests">
      <junit printsummary="yes" fork="yes">
         <jvmarg value="-DTestPath=${test.classes}"/>
         <formatter type="plain"/>
         <test todir="${test.reports}" name="TestAllUnitTests"/>
         <classpath refid="test.classpath"/>
      </junit>
   </target>

  <target name="copy.test.data" description="copy data needed by tests">
     <mkdir dir="src-test-inprogress"/>
     <copy todir="${test.classes}">
        <fileset dir="src-test" includes="data/*"/>
        <fileset dir="src-test-inprogress" includes="data/*"/>
     </copy>
  </target>

  <!--  ACCEPTANCE TESTING -->

   <target name="acceptance.tests" depends="unit.tests">
      <antcall target="run.all.acceptance.tests"/>
   </target>

  <macrodef name="perform.acceptance.tests">
     <attribute name="must.pass" default="true" description="indicates if tests have to pass or not"/>
     <attribute name="report.dir"/>
     <attribute name="fail.property" default=""/>
     <attribute name="timeout" default="900000"/>
     <element name="scripts.set" description="contains file set of test to execute"/>
     <sequential>
        <junit printsummary="yes" fork="yes" haltonerror="@{must.pass}" haltonfailure="@{must.pass}" timeout="@{timeout}">
           <jvmarg value="-Xms256m"/>
           <jvmarg value="-Xmx1024m"/>
           <!--                <jvmarg value="-Dtest.console"/>-->
           <sysproperty key="xplanner.overrides" value="${xplanner.overrides}"/>
           <formatter type="plain" usefile="false"/>
           <classpath refid="test.classpath"/>
           <batchtest fork="yes" todir="@{report.dir}" failureproperty="@{fail.property}" errorproperty="@{fail.property}">
              <scripts.set/>
              <formatter type="xml"/>
           </batchtest>
        </junit>
     </sequential>
  </macrodef>

   <target name="run.all.acceptance.tests" depends="_init, copy.test.data">
      <echo message="Waiting for ${xplanner.application.url}"/>
      <property name="all.tests.must.pass" value="true"/>
      <delete dir="${acceptance.test.reports}"/>
      <mkdir dir="${acceptance.test.reports}"/>
      <mkdir dir="src-test-inprogress"/>
      <copy todir="${test.classes}">
         <fileset dir="src-test" includes="data/*"/>
         <fileset dir="src-test-inprogress" includes="data/*"/>
      </copy>
      <waitfor maxwait="3" maxwaitunit="minute" checkevery="500">
         <http url="${xplanner.application.url}"/>
      </waitfor>
      <perform.acceptance.tests must.pass="${all.tests.must.pass}" report.dir="${acceptance.test.reports}"
         fail.property="acceptance.test.failed">
         <scripts.set>
            <fileset dir="src-test">
               <exclude name="**/acceptance/**/Abstract*.java"/>
               <exclude name="**/acceptance/**/FeaturePageTestScript.java"/>
               <exclude name="**/acceptance/**/CleanUp*TestScript.java"/>
               <include name="**/acceptance/**/*TestScript.java"/>
            </fileset>
         </scripts.set>
      </perform.acceptance.tests>
      <perform.acceptance.tests must.pass="false" report.dir="${acceptance.test.reports}">
         <scripts.set>
            <fileset dir="src-test-inprogress">
               <exclude name="**/acceptance/**/Abstract*.java"/>
               <include name="**/acceptance/**/*TestScript.java"/>
            </fileset>
         </scripts.set>
      </perform.acceptance.tests>
      <fail if="acceptance.test.failed"/>
   </target>

   <target name="run.all.performance.tests" depends="_init">
      <property name="all.tests.must.pass" value="false"/>
      <perform.acceptance.tests must.pass="${all.tests.must.pass}" report.dir="${performance.test.reports}" timeout="3600000"
         fail.property="performance.test.failed">
         <scripts.set>
            <fileset dir="src-test">
               <include name="**/performance/**/*PerformanceTest.java"/>
            </fileset>
         </scripts.set>
      </perform.acceptance.tests>
      <perform.acceptance.tests must.pass="false" report.dir="${performance.test.reports}" timeout="3600000" >
         <scripts.set>
            <fileset dir="src-test-inprogress">
               <include name="**/performance/**/*PerformanceTest.java"/>
            </fileset>
         </scripts.set>
      </perform.acceptance.tests>
      <fail if="performance.test.failed"/>
   </target>

    <!-- =================================================================== -->
    <!-- Subversion targets                                                  -->
    <!-- =================================================================== -->

    <taskdef resource="svntask.properties" classpathref="tools.classpath"/>

    <target name="svn.update" depends="svn.get.revision" unless="skip.svn.update">
        <svn><update dir="."/></svn>
     </target>

    <target name="svn.get.revision" unless="skip.svn.update">
        <svn><status path="." lastChangedRevisionProperty="revision"/></svn>
        <echo message="project subversion rev is ${revision}"/>
     </target>

    <target name="_check.svn.project">
        <available file=".svn" type="dir" property="svn.available"/>
    </target>

    <target name="_init.skip.svn.update" unless="svn.available">
        <property name="skip.svn.update" value="true"/>
        <echo message="Project is not from Subversion: desabling any subversion related queries" />
    </target>

    <target name="_init.svn" depends="_check.svn.project, _init.skip.svn.update"/>

  <!-- =================================================================== -->
  <!-- Database maintainance targets                                       -->
  <!-- =================================================================== -->

  <import file="build-db.xml"/>


  <!-- =================================================================== -->
  <!-- SOAP targets                                                        -->
  <!-- =================================================================== -->

   <target name="clean.soap">
      <delete dir="${soap.stubs}-xfire"/>
      <delete dir="${soap.classes}"/>
   </target>

   <target name="_init.soap" depends="_init, check.wsdl.exists">
      <taskdef resource="axis-tasks.properties">
        <classpath refid="product.classpath"/>
      </taskdef>
      <!--<taskdef name="wsgen" classname="org.codehaus.xfire.gen.WsGenTask">-->
          <!--<classpath refid="product.classpath"/>-->
      <!--</taskdef>-->
      <!--<taskdef name="wsdlgen" classname="org.codehaus.xfire.gen.WsdlGenTask">-->
          <!--<classpath refid="product.classpath"/>-->
      <!--</taskdef>-->

      <mkdir dir="${soap.stubs}"/>
   </target>

   <target name="check.wsdl.exists" depends="_init">
      <available file="${soap.stubs}/XPlanner.wsdl" property="wsdl.exists"/>
   </target>

   <target name="generate.soap.stubs" unless="wsdl.exists" depends="_init">
      <antcall target="regenerate.soap.stubs"/>
   </target>

   <target name="regenerate.soap.stubs" description="(re)generate the soap wsdl and stubs required for testing"
      depends="clean.soap,_init.soap,generate.soap.wsdl">
      <axis-wsdl2java
         output="${soap.stubs}"
         testcase="false"
         verbose="true"
         url="${soap.stubs}/XPlanner.wsdl">
        <classpath refid="test.classpath"/>
         <mapping namespace="http://xplanner.org/soap" package="com.technoetic.xplanner.soap.client"/>
         <!--                       <mapping namespace="http://localhost:8080/xplanner/soap/XPlannerView" package="com.technoetic.xplanner.soap.port" />-->
      </axis-wsdl2java>
      <mkdir dir="${soap.classes}"/>
      <javac debug="on" srcdir="${soap.stubs}" destdir="${soap.classes}" classpathref="webapp.classpath"/>
   </target>

  <!--<target name="regenerate.xfire.soap.stubs" description="(re)generate the soap wsdl and stubs required for testing"-->
      <!--depends="clean.soap,_init.soap,generate.xfire.soap.wsdl">-->
      <!--<wsgen-->
         <!--outputDirectory="${soap.stubs}-xfire"-->
         <!--wsdl="${soap.stubs}-xfire/XPlanner.wsdl"-->
         <!--package="com.technoetic.xplanner.soap.client"/>-->
<!---->
      <!--<mkdir dir="${soap.classes}"/>-->
      <!--<javac debug="on" srcdir="${soap.stubs}-xfire" destdir="${soap.classes}" classpathref="webapp.classpath"/>-->
   <!--</target>-->

   <target name="generate.soap.wsdl" depends="_init.soap,build.product">
      <axis-java2wsdl
         location="http://xplanner.org/soap/XPlanner"
         namespace="http://xplanner.org/soap"
         output="${soap.stubs}/XPlanner.wsdl"
         classname="com.technoetic.xplanner.soap.XPlanner"
         classpathref="test.classpath">
         <mapping namespace="http://xplanner.org/soap" package="com.technoetic.xplanner.soap.domain"/>
      </axis-java2wsdl>
   </target>

  <!--<target name="generate.xfire.soap.wsdl" depends="_init.soap,build.product">-->
      <!--<wsdlgen-->
         <!--configUrl="xfire-servlet.xml" -->
         <!--outputDirectory="${soap.stubs}-xfire"/>-->
   <!--</target>-->


   <target name="zip.soap.stubs" depends="generate.soap.stubs">
      <jar destfile="xplanner-soap.jar" basedir="${soap.classes}"/>
      <zip destfile="xplanner-soap-src.zip" basedir="${soap.stubs}"/>
   </target>

</project>