darrell     02/04/29 23:18:49

  Modified:    tools/xsl build.xsl
  Log:
  Use "depends" instead of <antcall> to run dependent targets for each 
antlib/jar.
  Seems faster - no <antcall> overhead.
  
  Revision  Changes    Path
  1.8       +12 -3     jakarta-ant-myrmidon/tools/xsl/build.xsl
  
  Index: build.xsl
  ===================================================================
  RCS file: /home/cvs/jakarta-ant-myrmidon/tools/xsl/build.xsl,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- build.xsl 30 Apr 2002 05:09:18 -0000      1.7
  +++ build.xsl 30 Apr 2002 06:18:49 -0000      1.8
  @@ -273,14 +273,23 @@
                   </xsl:otherwise>
               </xsl:choose>
   
  -            <target name="jars" depends="compile" description="Builds the 
project jar files">
  +            <target name="jars-prepare" depends="compile">
                   <mkdir dir="${{build.lib}}"/>
  +            </target>
   
  +            <!-- Generate the depends list for "jars".
  +                 This is a list of dependent targets, one for each antlib -->
  +            <xsl:variable name="jar-depends">
                   <xsl:for-each select="build/jar|build/antlib">
  -                    <antcall target="jar-{id}"/>
  +                    <xsl:text>jar-</xsl:text>
  +                    <xsl:value-of select="id"/>
  +                    <xsl:if test="not(position()=last())">, </xsl:if>
                   </xsl:for-each>
  -            </target>
  +            </xsl:variable>
  +
  +            <target name="jars" depends="{$jar-depends}" description="Builds 
the project jar files"/>
   
  +            <!-- Generate the dependent targets for "jars", one for each 
antlib -->
               <xsl:apply-templates select="build/jar|build/antlib"/>
   
               <target name="javadocs" description="Generates the javadocs">
  
  
  

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to