[Yanel-commits] rev 24695 - public/yanel/trunk/src/build
michi at wyona.com
michi at wyona.com
Tue May 29 11:33:08 CEST 2007
Author: michi
Date: 2007-05-29 11:33:08 +0200 (Tue, 29 May 2007)
New Revision: 24695
Modified:
public/yanel/trunk/src/build/yanel2realms.xsl
Log:
deploy targets added
Modified: public/yanel/trunk/src/build/yanel2realms.xsl
===================================================================
--- public/yanel/trunk/src/build/yanel2realms.xsl 2007-05-29 09:12:25 UTC (rev 24694)
+++ public/yanel/trunk/src/build/yanel2realms.xsl 2007-05-29 09:33:08 UTC (rev 24695)
@@ -13,7 +13,7 @@
<xsl:template match="/">
<xsl:comment> NOTE: This file has been generated automatically from conf/realms.xml resp. conf/local/local.realms.xml! </xsl:comment>
-<project name="realms" default="init">
+<project name="realms" default="build-realms">
<target name="init">
<echo>Init ...</echo>
@@ -53,6 +53,23 @@
</target>
</xsl:for-each>
+ <target name="deploy-realms" description="Deploy libs of realms" depends="init">
+<xsl:for-each select="/yanel:realms/yanel:realm">
+ <condition property="lib-dir-of-realm-with-id-{@id}-exists">
+ <available file="{yanel:config/@src}/build/lib" type="dir"/>
+ </condition>
+ <antcall target="deploy-realm-with-id-{@id}"/>
+</xsl:for-each>
+ </target>
+
+<xsl:for-each select="/yanel:realms/yanel:realm">
+ <target name="deploy-realm-with-id-{@id}" description="Deploy libs of realm {@id}" depends="init" if="lib-dir-of-realm-with-id-{@id}-exists">
+ <copy todir="${{build.dir}}/webapps/yanel/WEB-INF/lib">
+ <fileset dir="{yanel:config/@src}/build/lib"/>
+ </copy>
+ </target>
+</xsl:for-each>
+
</project>
</xsl:template>
More information about the Yanel-commits
mailing list