[Yanel-commits] rev 42615 - public/yanel/trunk/src/build
michi at wyona.com
michi at wyona.com
Tue May 5 15:10:58 CEST 2009
Author: michi
Date: 2009-05-05 15:10:58 +0200 (Tue, 05 May 2009)
New Revision: 42615
Modified:
public/yanel/trunk/src/build/yanel2resources.xsl
Log:
check if source attribute actually exists
Modified: public/yanel/trunk/src/build/yanel2resources.xsl
===================================================================
--- public/yanel/trunk/src/build/yanel2resources.xsl 2009-05-05 12:52:26 UTC (rev 42614)
+++ public/yanel/trunk/src/build/yanel2resources.xsl 2009-05-05 13:10:58 UTC (rev 42615)
@@ -29,6 +29,9 @@
<target name="build-resources" description="Build resources" depends="init">
<xsl:for-each select="/yanel:resource-types/yanel:resource-type">
<xsl:choose>
+ <xsl:when test="not(@src)">
+ <echo>INFO: Do not compile, because no 'src' attribute specified (package: <xsl:value-of select="@package"/>)</echo>
+ </xsl:when>
<xsl:when test="not(@compile)">
<echo>INFO: Do not compile: <xsl:value-of select="@src"/></echo>
</xsl:when>
@@ -118,6 +121,9 @@
<xsl:when test="@compile='false'">
<echo>INFO: Do not clean: <xsl:value-of select="@src"/>build</echo>
</xsl:when>
+ <xsl:when test="not(@src)">
+ <echo>INFO: Do not clean, because no 'src' attribute specified (package: <xsl:value-of select="@package"/>)</echo>
+ </xsl:when>
<xsl:otherwise>
<xsl:choose>
<!-- TODO: What about Windows, e.g. D:/foo/bar ...! -->
More information about the Yanel-commits
mailing list