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

michi at wyona.com michi at wyona.com
Tue Nov 20 22:49:16 CET 2007


Author: michi
Date: 2007-11-20 22:49:15 +0100 (Tue, 20 Nov 2007)
New Revision: 29091

Modified:
   public/yanel/trunk/src/build/yanel2resources.xsl
Log:
copy by copy-dir-name replaced

Modified: public/yanel/trunk/src/build/yanel2resources.xsl
===================================================================
--- public/yanel/trunk/src/build/yanel2resources.xsl	2007-11-20 21:48:15 UTC (rev 29090)
+++ public/yanel/trunk/src/build/yanel2resources.xsl	2007-11-20 21:49:15 UTC (rev 29091)
@@ -65,21 +65,21 @@
     <mkdir dir="${{build.dir}}/webapps/{$servlet.context.prefix}/resources"/>
 <xsl:for-each select="/yanel:resource-types/yanel:resource-type">
 
-    <xsl:if test="@copy and @copy = 'true'">
+    <xsl:if test="@copy-dir-name">
       <xsl:comment>TODO: Copy sources ...</xsl:comment>
     <xsl:choose>
       <xsl:when test="starts-with(@src, '/') or string-length(substring-before(@src, ':/'))='1'">
-    <copy todir="${{build.dir}}/webapps/{$servlet.context.prefix}/resources">
+    <copy todir="${{build.dir}}/webapps/{$servlet.context.prefix}/resources/{@copy-dir-name}">
       <fileset dir="{@src}" excludes="build/**, src/java/**, src/build/**, build.xml"/>
     </copy>
       </xsl:when>
       <xsl:when test="starts-with(@src, '@YANEL_SRC_DIR@')">
-    <copy todir="${{build.dir}}/webapps/{$servlet.context.prefix}/resources/pdf">
+    <copy todir="${{build.dir}}/webapps/{$servlet.context.prefix}/resources/{@copy-dir-name}">
       <fileset dir="{@src}" excludes="build/**, src/java/**, src/build/**, build.xml"/>
     </copy>
       </xsl:when>
       <xsl:otherwise>
-    <copy todir="${{build.dir}}/webapps/{$servlet.context.prefix}/resources">
+    <copy todir="${{build.dir}}/webapps/{$servlet.context.prefix}/resources/{@copy-dir-name}">
       <fileset dir="${{build.dir}}/{@src}" excludes="build/**, src/java/**, src/build/**, build.xml"/>
     </copy>
       </xsl:otherwise>



More information about the Yanel-commits mailing list