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

michi at wyona.com michi at wyona.com
Fri Aug 28 09:51:02 CEST 2009


Author: michi
Date: 2009-08-28 09:51:00 +0200 (Fri, 28 Aug 2009)
New Revision: 44461

Modified:
   public/yanel/trunk/src/build/resource-types/resource-type.build.xml
Log:
deploy-jar target started in order to simplify daily routine

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-28 07:49:44 UTC (rev 44460)
+++ public/yanel/trunk/src/build/resource-types/resource-type.build.xml	2009-08-28 07:51:00 UTC (rev 44461)
@@ -1,11 +1,16 @@
 <?xml version="1.0"?>
+
 <!-- Everything common to most resource types. -->
+
 <project name="yanel-resource-type"
  xmlns:artifact="antlib:org.apache.maven.artifact.ant"
 >
-<!-- the default task seems not to be imported at least with Ant 1.6.5 or Ant 1.7.1
- default="compile"
+
+<!-- 
+     The default task config attribute (for example default="compile") seems not to be imported at least with Ant 1.6.5 or Ant 1.7.1
+     which means it needs to be set within each resource build.xml (see for example src/contributions/resources/forgotpw/build.xml)
 -->
+
   <dirname property="resource.home.dir" file="${ant.file}"/>
 
   <taskdef resource="net/sf/antcontrib/antlib.xml"/>
@@ -166,4 +171,11 @@
       <attach file="build/lib/yanel-resource-${resource.name}-${resource.version}-sources.jar" classifier="sources"/>
     </artifact:install>
   </target>
+
+  <!-- Deploy jar file for this resource into local webapp libs directory -->
+  <target name="deploy-jar" depends="compile">
+    <!-- TODO: Replace hardcoded tomcat path -->
+    <copy todir="/Users/michaelwechner/src/wyona/public/yanel/trunk/local/apache-tomcat-5.5.20/webapps/${servlet.context.prefix}/WEB-INF/lib" file="${resource.lib.dir}/yanel-resource-${resource.name}-${resource.version}.jar">
+    </copy>
+  </target>
 </project>



More information about the Yanel-commits mailing list