svn commit: r761250 - /lenya/branches/BRANCH_2_0_X/src/resources/build/modules2build.xsl

[email protected]
Newsgroups gmane.comp.cms.lenya.cvs
Message-ID <[email protected]>
Author: andreas
Date: Thu Apr  2 11:07:17 2009
New Revision: 761250

URL: http://svn.apache.org/viewvc?rev=761250&view=rev
Log:
Adding support for custom module buildfiles.

Modified:
    lenya/branches/BRANCH_2_0_X/src/resources/build/modules2build.xsl

Modified: lenya/branches/BRANCH_2_0_X/src/resources/build/modules2build.xsl
URL: http://svn.apache.org/viewvc/lenya/branches/BRANCH_2_0_X/src/resources/build/modules2build.xsl?rev=761250&r1=761249&r2=761250&view=diff
==============================================================================
--- lenya/branches/BRANCH_2_0_X/src/resources/build/modules2build.xsl (original)
+++ lenya/branches/BRANCH_2_0_X/src/resources/build/modules2build.xsl Thu Apr  2 11:07:17 2009
@@ -158,6 +158,12 @@
       <jing rngfile="{$module-schema}" file="{$src}{$configFile}"/>
     </target>
     
+    <available file="{$src}/build.xml" property="custombuild.module.{$id}"/>
+    <target name="custombuild-module-{$id}" if="custombuild.module.{$id}">
+      <echo>Invoking custom build process for module '<xsl:value-of select="$id"/>'</echo>
+      <ant dir="{$src}" antfile="{$src}/build.xml"/>
+    </target>
+    
     <xsl:text>
       
     </xsl:text>
@@ -292,7 +298,7 @@
     </xsl:variable>
     
     <target name="deploy-module-{$id}"
-      depends="{$dependencyList} validate-module-{$id}, compile-module-{$id}, copy-module-{$id}, patch-module-{$id}"/>
+      depends="{$dependencyList} validate-module-{$id}, custombuild-module-{$id}, compile-module-{$id}, copy-module-{$id}, patch-module-{$id}"/>
     
     <!-- ============================================================ -->
     <!-- Javadocs -->
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.