You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by an...@apache.org on 2007/02/09 19:22:03 UTC

svn commit: r505400 - in /lenya/trunk/src: resources/build/modules2build.xsl targets/modules-build.xml

Author: andreas
Date: Fri Feb  9 10:22:03 2007
New Revision: 505400

URL: http://svn.apache.org/viewvc?view=rev&rev=505400
Log:
optimize performance of canoo build

Modified:
    lenya/trunk/src/resources/build/modules2build.xsl
    lenya/trunk/src/targets/modules-build.xml

Modified: lenya/trunk/src/resources/build/modules2build.xsl
URL: http://svn.apache.org/viewvc/lenya/trunk/src/resources/build/modules2build.xsl?view=diff&rev=505400&r1=505399&r2=505400
==============================================================================
--- lenya/trunk/src/resources/build/modules2build.xsl (original)
+++ lenya/trunk/src/resources/build/modules2build.xsl Fri Feb  9 10:22:03 2007
@@ -85,9 +85,14 @@
         <xsl:apply-templates select="list:module" mode="call-test"/>
       </target>
       
-      <target name="test-modules-canoo">
-        <xsl:apply-templates select="list:module" mode="call-test-canoo"/>
-      </target>
+      <xsl:variable name="canooDependencyList">
+        <xsl:for-each select="list:module">
+          <xsl:apply-templates select="document(concat(@src, '/module.xml'))/mod:module" mode="test-canoo"/>
+          <xsl:call-template name="separator"/>
+        </xsl:for-each>
+      </xsl:variable>
+      <target name="test-modules-canoo" depends="{$canooDependencyList}"/>
+      
       
       <xsl:apply-templates select="list:module" mode="target"/>
       
@@ -120,6 +125,11 @@
   
   <xsl:template match="mod:module" mode="call-test-canoo">
     <antcall target="canoo-module-{mod:id}"/>
+  </xsl:template>
+  
+  
+  <xsl:template match="mod:module" mode="test-canoo">
+    <xsl:text>canoo-module-</xsl:text><xsl:value-of select="mod:id"/>
   </xsl:template>
   
   

Modified: lenya/trunk/src/targets/modules-build.xml
URL: http://svn.apache.org/viewvc/lenya/trunk/src/targets/modules-build.xml?view=diff&rev=505400&r1=505399&r2=505400
==============================================================================
--- lenya/trunk/src/targets/modules-build.xml (original)
+++ lenya/trunk/src/targets/modules-build.xml Fri Feb  9 10:22:03 2007
@@ -114,9 +114,8 @@
   </target>
   
   <target name="modules.test.canoo" depends="init">
-    <ant antfile="${build.dir}/temp/modules-build.xml"
-      inheritall="true"
-      inheritrefs="true">
+    <ant antfile="${build.dir}/temp/modules-build.xml">
+      <property name="webtest.home" value="${webtest.home}"/>
       <target name="test-modules-canoo"/>
     </ant>
   </target>



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@lenya.apache.org
For additional commands, e-mail: commits-help@lenya.apache.org