[Yanel-commits] rev 29063 - public/yanel/trunk/src/build
michi at wyona.com
michi at wyona.com
Tue Nov 20 10:38:43 CET 2007
Author: michi
Date: 2007-11-20 10:38:43 +0100 (Tue, 20 Nov 2007)
New Revision: 29063
Modified:
public/yanel/trunk/src/build/yanel2resources.xsl
Log:
package choose refactored
Modified: public/yanel/trunk/src/build/yanel2resources.xsl
===================================================================
--- public/yanel/trunk/src/build/yanel2resources.xsl 2007-11-20 09:37:37 UTC (rev 29062)
+++ public/yanel/trunk/src/build/yanel2resources.xsl 2007-11-20 09:38:43 UTC (rev 29063)
@@ -57,11 +57,11 @@
<xsl:comment>INFO: Deploy libs of resources</xsl:comment>
<target name="deploy-resources" description="Deploy resources" depends="init">
<xsl:for-each select="/yanel:resource-types/yanel:resource-type">
- <xsl:choose>
- <xsl:when test="@package">
- <xsl:comment>No library to copy</xsl:comment>
- </xsl:when>
- <xsl:otherwise>
+
+ <xsl:if test="@copy">
+ <xsl:comment>Copy sources ...</xsl:comment>
+ </xsl:if>
+
<xsl:choose>
<xsl:when test="starts-with(@src, '/') or string-length(substring-before(@src, ':/'))='1'">
<copy todir="${{build.dir}}/webapps/{$servlet.context.prefix}/WEB-INF/lib">
@@ -74,8 +74,6 @@
</copy>
</xsl:otherwise>
</xsl:choose>
- </xsl:otherwise>
- </xsl:choose>
</xsl:for-each>
</target>
@@ -103,11 +101,15 @@
<xsl:comment>Copy dependencies of resources</xsl:comment>
<target name="copy-resources-dependencies" description="Copy dependencies of resources" depends="init">
<xsl:for-each select="/yanel:resource-types/yanel:resource-type">
+
<xsl:choose>
- <xsl:when test="@package">
- <xsl:comment>!!!</xsl:comment>
+ <xsl:when test="@copy">
+ <xsl:comment>TODO!!!</xsl:comment>
</xsl:when>
<xsl:otherwise>
+ </xsl:otherwise>
+ </xsl:choose>
+
<xsl:choose>
<xsl:when test="starts-with(@src, '/') or string-length(substring-before(@src, ':/'))='1'">
<ant inheritAll="false" antfile="{@src}/build.xml" target="copy-dependencies">
@@ -126,8 +128,6 @@
</ant>
</xsl:otherwise>
</xsl:choose>
- </xsl:otherwise>
- </xsl:choose>
</xsl:for-each>
</target>
</project>
More information about the Yanel-commits
mailing list