seibert     2002/09/17 13:21:56

  Modified:    java     build.xml
               java/xmls properties.xml targets.xml
  Log:
  Significantly improves the build times (about 200% speed improvement)
  Verified good by gdaniels and dims
  
  Revision  Changes    Path
  1.190     +12 -8     xml-axis/java/build.xml
  
  Index: build.xml
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/build.xml,v
  retrieving revision 1.189
  retrieving revision 1.190
  diff -u -r1.189 -r1.190
  --- build.xml 17 Sep 2002 17:27:45 -0000      1.189
  +++ build.xml 17 Sep 2002 20:21:56 -0000      1.190
  @@ -175,11 +175,13 @@
     <target name="samples" depends="compile" unless="samples.built"
       description="build the samples">
       <!--
  -    <exec executable="ant">
  -      <arg line="-buildfile ${axis.home}/buildSamples.xml compile"/>
  -    </exec> 
  -    -->
         <ant antfile="${axis.home}/buildSamples.xml" target="compile"/>
  +    -->
  +     <antcall target="my-forking-ant">
  +       <param name="dir" value="${axis.home}"/>
  +       <param name="file" value="buildSamples.xml"/>
  +       <param name="target" value="compile"/>
  +     </antcall>
         <property name="samples.built" value="yes"/>
         <echo message="Samples property set ${samples.built}"/>
     </target>
  @@ -195,11 +197,13 @@
   
     <target name="buildTest" depends="compile" if="junit.present" 
unless="tests.built">
       <echo message="junit package found ..."/>
  -      <ant antfile="${axis.home}/buildTest.xml" target="compile"/>
  +     <antcall target="my-forking-ant">
  +       <param name="dir" value="${axis.home}"/>
  +       <param name="file" value="buildTest.xml"/>
  +       <param name="target" value="compile"/>
  +     </antcall>
       <!--
  -    <exec executable="ant">
  -      <arg line="-buildfile ${axis.home}/buildTest.xml compile"/>
  -    </exec>
  +      <ant antfile="${axis.home}/buildTest.xml" target="compile"/>
       -->
       <property name="tests.built" value="yes"/>
       <echo message="Tests property set ${tests.built}"/>
  
  
  
  1.27      +1 -1      xml-axis/java/xmls/properties.xml
  
  Index: properties.xml
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/xmls/properties.xml,v
  retrieving revision 1.26
  retrieving revision 1.27
  diff -u -r1.26 -r1.27
  --- properties.xml    11 Sep 2002 21:28:59 -0000      1.26
  +++ properties.xml    17 Sep 2002 20:21:56 -0000      1.27
  @@ -96,4 +96,4 @@
   <property name="http.proxyPassword" value=""/>
   
   <property name="javac.fork" value="no"/>
  -<property name="foreach.fork" value="yes"/>
  +<property name="foreach.fork" value="no"/>
  
  
  
  1.30      +12 -0     xml-axis/java/xmls/targets.xml
  
  Index: targets.xml
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/xmls/targets.xml,v
  retrieving revision 1.29
  retrieving revision 1.30
  diff -u -r1.29 -r1.30
  --- targets.xml       17 Sep 2002 16:50:36 -0000      1.29
  +++ targets.xml       17 Sep 2002 20:21:56 -0000      1.30
  @@ -1,3 +1,15 @@
  +   <!-- ===================================================================
  +         This is basically the <ant /> task, except that it forks
  +        =================================================================== -->
  +   <target name="my-forking-ant">
  +     <echo message="My Forking Ant"/>
  +     <java classname="org.apache.tools.ant.Main" fork="yes" dir="${dir}">
  +       <classpath refid="classpath"/>
  +       <arg line="-buildfile ${file} ${target}"/>
  +     </java>
  +   </target>
  +
  +
     <!-- ===================================================================
       This is an accessory function to echo out fileNames 
          =================================================================== --> 
  
  
  


Reply via email to