[Yanel-commits] rev 44373 - public/yanel/trunk/src/build/resource-types

michi at wyona.com michi at wyona.com
Tue Aug 25 09:22:41 CEST 2009


Author: michi
Date: 2009-08-25 09:22:40 +0200 (Tue, 25 Aug 2009)
New Revision: 44373

Modified:
   public/yanel/trunk/src/build/resource-types/resource-type.build.xml
Log:
only copy configs etc into jar if building binary release

Modified: public/yanel/trunk/src/build/resource-types/resource-type.build.xml
===================================================================
--- public/yanel/trunk/src/build/resource-types/resource-type.build.xml	2009-08-25 06:36:38 UTC (rev 44372)
+++ public/yanel/trunk/src/build/resource-types/resource-type.build.xml	2009-08-25 07:22:40 UTC (rev 44373)
@@ -110,10 +110,22 @@
              replace=""
              global="true"
              casesensitive="false" />
+
     <!--<echo>Package directory: ${new.resource.java.class.fs.path}</echo>-->
-    <copy todir="${resource.classes.dir}/${new.resource.java.class.fs.path}">
-      <fileset dir="${resource.home.dir}" includes="resource*.xml,htdocs/**,yanel-htdocs/**"/><!--NOTE: only the "user-mgmt" resource-type folder contains several "resource-*.xml" files, all other resource-types only have one "resource.xml" (as of revision 41802 at least) -->
-    </copy>
+
+    <!-- Copy configs etc. into jar file only in the case of a binary release -->
+    <if>
+      <istrue value="${copy.resource-type-configs.to.webapp}"/>
+      <then>
+      <copy todir="${resource.classes.dir}/${new.resource.java.class.fs.path}">
+        <fileset dir="${resource.home.dir}" includes="resource*.xml,htdocs/**,yanel-htdocs/**"/><!--NOTE: only the "user-mgmt" resource-type folder contains several "resource-*.xml" files, all other resource-types only have one "resource.xml" (as of revision 41802 at least) -->
+      </copy>
+      </then>
+      <else>
+        <echo>Configs etc. will not be copied into jar!</echo>
+      </else>
+    </if>
+
     <mkdir dir="${resource.lib.dir}"/>
     <jar destfile="${resource.lib.dir}/yanel-resource-${resource.name}-${resource.version}.jar"
       basedir="${resource.classes.dir}"



More information about the Yanel-commits mailing list