[Yanel-commits] rev 24682 - public/yanel/trunk/src/build
michi at wyona.com
michi at wyona.com
Sat May 26 23:35:03 CEST 2007
Author: michi
Date: 2007-05-26 23:35:02 +0200 (Sat, 26 May 2007)
New Revision: 24682
Modified:
public/yanel/trunk/src/build/yanel2realms.xsl
Log:
check if build file actually exists
Modified: public/yanel/trunk/src/build/yanel2realms.xsl
===================================================================
--- public/yanel/trunk/src/build/yanel2realms.xsl 2007-05-26 21:32:56 UTC (rev 24681)
+++ public/yanel/trunk/src/build/yanel2realms.xsl 2007-05-26 21:35:02 UTC (rev 24682)
@@ -22,7 +22,11 @@
<target name="build-realms" description="Build realms" depends="init">
<xsl:for-each select="/yanel:realms/yanel:realm">
- <echo>Build realm with id "<xsl:value-of select="@id"/>"</echo>
+ <condition property="ant-file-of-realm-with-id-{@id}-exists">
+ <available file="{yanel:config/@src}/build.xml"/>
+ </condition>
+ <antcall target="build-realm-with-id-{@id}"/>
+
<!--
<xsl:choose>
<xsl:when test="starts-with(yanel:config/@src, '/') or string-length(substring-before(yanel:config/@src, ':/'))='1'">
@@ -40,6 +44,15 @@
</xsl:for-each>
</target>
+<xsl:for-each select="/yanel:realms/yanel:realm">
+ <target name="build-realm-with-id-{@id}" if="ant-file-of-realm-with-id-{@id}-exists">
+ <echo>Build realm with id "<xsl:value-of select="@id"/>"</echo>
+ <ant inheritAll="false" antfile="{yanel:config/@src}/build.xml" target="compile">
+ <property name="yanel.source.version" value="{$yanel.source.version}"/>
+ </ant>
+ </target>
+</xsl:for-each>
+
</project>
</xsl:template>
More information about the Yanel-commits
mailing list