[Yanel-commits] rev 21487 - public/yanel/trunk/src/build
michi at wyona.com
michi at wyona.com
Sun Jan 7 12:28:28 CET 2007
Author: michi
Date: 2007-01-07 12:28:27 +0100 (Sun, 07 Jan 2007)
New Revision: 21487
Modified:
public/yanel/trunk/src/build/yanel2resources.xsl
Log:
absolute path re cleaning fixed
Modified: public/yanel/trunk/src/build/yanel2resources.xsl
===================================================================
--- public/yanel/trunk/src/build/yanel2resources.xsl 2007-01-07 11:25:44 UTC (rev 21486)
+++ public/yanel/trunk/src/build/yanel2resources.xsl 2007-01-07 11:28:27 UTC (rev 21487)
@@ -72,7 +72,15 @@
<echo>INFO: Do not clean: <xsl:value-of select="@src"/>build</echo>
</xsl:when>
<xsl:otherwise>
- <delete dir="${{build.dir}}/{@src}/build"/>
+ <xsl:choose>
+ <!-- TODO: What about Windows, e.g. D:/foo/bar ...! -->
+ <xsl:when test="starts-with(@src, '/')">
+ <delete dir="{@src}/build"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <delete dir="${{build.dir}}/{@src}/build"/>
+ </xsl:otherwise>
+ </xsl:choose>
</xsl:otherwise>
</xsl:choose>
</xsl:for-each>
More information about the Yanel-commits
mailing list