[Yanel-commits] rev 24709 - public/yanel/trunk/src/build

michi at wyona.com michi at wyona.com
Tue May 29 15:41:53 CEST 2007


Author: michi
Date: 2007-05-29 15:41:53 +0200 (Tue, 29 May 2007)
New Revision: 24709

Modified:
   public/yanel/trunk/src/build/yanel2realms.xsl
Log:
clean targets added

Modified: public/yanel/trunk/src/build/yanel2realms.xsl
===================================================================
--- public/yanel/trunk/src/build/yanel2realms.xsl	2007-05-29 10:27:57 UTC (rev 24708)
+++ public/yanel/trunk/src/build/yanel2realms.xsl	2007-05-29 13:41:53 UTC (rev 24709)
@@ -70,6 +70,21 @@
   </target>
 </xsl:for-each>
 
+  <target name="clean-realms" description="Clean realms" depends="init">
+<xsl:for-each select="/yanel:realms/yanel:realm">
+    <condition property="build-dir-of-realm-with-id-{@id}-exists">
+      <available file="{yanel:config/@src}/build" type="dir"/>
+    </condition>
+    <antcall target="clean-realm-with-id-{@id}"/>
+</xsl:for-each>
+  </target>
+
+<xsl:for-each select="/yanel:realms/yanel:realm">
+  <target name="clean-realm-with-id-{@id}" description="Clean realm {@id}" depends="init" if="build-dir-of-realm-with-id-{@id}-exists">
+    <delete dir="{yanel:config/@src}/build"/>
+  </target>
+</xsl:for-each>
+
 </project>
 
 </xsl:template>




More information about the Yanel-commits mailing list