axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject cvs commit: xml-axis/java build.xml
Date Thu, 18 Oct 2001 16:51:09 GMT
dims        01/10/18 09:51:09

  Modified:    java     build.xml
  Log:
  Build and cleanup Inout Sample a bit better (mirroring the AddressBook sample).
  
  Revision  Changes    Path
  1.61      +39 -20    xml-axis/java/build.xml
  
  Index: build.xml
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/build.xml,v
  retrieving revision 1.60
  retrieving revision 1.61
  diff -u -r1.60 -r1.61
  --- build.xml	2001/10/18 16:05:02	1.60
  +++ build.xml	2001/10/18 16:51:09	1.61
  @@ -61,6 +61,7 @@
     <property name="src.dir" value="./src"/>
     <property name="docs.dir" value="./docs"/>
     <property name="samples.dir" value="./samples"/>
  +  <property name="test.dir" value="./test"/>
   
     <property name="wsdl4j.jar" value="lib/wsdl4j.jar"/>
     <property name="log4j-core.jar" value="lib/log4j-core.jar"/>
  @@ -153,6 +154,12 @@
         <srcfiles dir="${src.dir}/org/apache/axis/wsdl" includes="**/*.java"/>
       </uptodate>
   
  +    <uptodate property="inout.uptodate" 
  +              targetfile="${test.dir}/inout/InoutService.java">
  +      <srcfiles dir="${samples.dir}/addr" includes="inout.wsdl"/>
  +      <srcfiles dir="${src.dir}/org/apache/axis/wsdl" includes="**/*.java"/>
  +    </uptodate>
  +
     </target>
   
     <!-- =================================================================== -->
  @@ -198,7 +205,7 @@
     <!-- =================================================================== -->
     <!-- Compiles the samples                                                -->
     <!-- =================================================================== -->
  -  <target name="samples" depends="compile,buildAddrSample">
  +  <target name="samples" depends="compile,buildAddrSample,buildInoutSample">
       <javac srcdir="." destdir="${build.dest}"
              debug="${debug}">
         <classpath>
  @@ -206,6 +213,7 @@
           <path refid="classpath"/>
         </classpath>
         <include name="samples/**/*.java" />
  +      <include name="test/**/*.java" />
         <exclude name="samples/**/*SMTP*.java" unless="smtp.present" />
         <exclude name="**/old/**/*.java" />
         <exclude name="samples/userguide/example2/*.java"/>
  @@ -229,6 +237,21 @@
       </java>
     </target>
   
  +  <target name="buildInoutSample" unless="inout.uptodate">
  +    <antcall target="cleanInout"/>
  +    <java classname="org.apache.axis.wsdl.Wsdl2java" dir="."
  +          fork="true">
  +      <classpath refid="classpath"/>
  +      <classpath>
  +        <pathelement location="${build.dest}"/>
  +      </classpath>
  +      <arg value="-s"/>
  +      <arg value="test/inout/inout.wsdl"/>
  +      <arg value="-p"/>
  +      <arg value="test.inout"/>
  +    </java>
  +  </target>
  +
     <target name="cleanAddr">
       <delete file="samples/addr/AddressBook.java" />
       <delete file="samples/addr/AddressBookService.java" />
  @@ -242,6 +265,20 @@
       <delete file="samples/addr/undeploy.xml" />
     </target>
   
  +  <target name="cleanInout">
  +    <delete file="test/inout/Address.java"/>
  +    <delete file="test/inout/AddressHolder.java"/>
  +    <delete file="test/inout/Inout.java"/>
  +    <delete file="test/inout/InoutSOAPBindingSkeleton.java"/>
  +    <delete file="test/inout/InoutSOAPBindingStub.java"/>
  +    <delete file="test/inout/InoutService.java"/>
  +    <delete file="test/inout/Phone.java"/>
  +    <delete file="test/inout/PhoneHolder.java"/>
  +    <delete file="test/inout/TestFailed.java"/>
  +    <delete file="test/inout/deploy.xml"/>
  +    <delete file="test/inout/undeploy.xml"/>
  +  </target>
  +
     <!-- =================================================================== -->
     <!-- Compiles the JUnit testcases -->
     <!-- =================================================================== -->
  @@ -253,25 +290,6 @@
   
     <target name="buildTest" if="junit.present" depends="compile,samples">
       <echo message="junit package found ..."/>
  -
  -    <!-- Tests are packaged as test.*, so source dir is main dir -->
  -    <java classname="org.apache.axis.wsdl.Wsdl2java" dir="."
  -          fork="true">
  -      <classpath refid="classpath"/>
  -      <classpath>
  -        <pathelement location="${build.dest}"/>
  -      </classpath>
  -      <arg value="-s"/>
  -      <arg value="test/inout/inout.wsdl"/>
  -      <arg value="-p"/>
  -      <arg value="test.inout"/>
  -    </java>
  -    <javac srcdir="${basedir}"
  -      destdir="${build.dest}"
  -      debug="on"> <!-- set debug on since it helps with line numbers when unit tests
fail. -->
  -      <include name="test/**/*.java" />
  -      <classpath refid="test-classpath" />
  -    </javac>
     </target>
   
   
  @@ -431,5 +449,6 @@
       <delete dir="test-reports"/>
       <delete file="TEST-test.functional.FunctionalTests.txt"/>
       <antcall target="cleanAddr"/>
  +    <antcall target="cleanInout"/>
     </target>
   </project>
  
  
  

Mime
View raw message