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

guillaume at wyona.com guillaume at wyona.com
Thu Apr 23 19:16:06 CEST 2009


Author: guillaume
Date: 2009-04-23 19:16:06 +0200 (Thu, 23 Apr 2009)
New Revision: 42524

Modified:
   public/yanel/trunk/src/build/resource-types/resource-type.build.xml
Log:
Now all resource-types when installed as Maven artifact also install an attached source artifact
 which is then picked up during Eclipse .classpath generation:
 this allows source code of depended resource-types to be always visible under Eclipse! :)

Thanks to Urs Voegeli for the nifty suggestion!

Issue: 6967


Modified: public/yanel/trunk/src/build/resource-types/resource-type.build.xml
===================================================================
--- public/yanel/trunk/src/build/resource-types/resource-type.build.xml	2009-04-23 17:14:06 UTC (rev 42523)
+++ public/yanel/trunk/src/build/resource-types/resource-type.build.xml	2009-04-23 17:16:06 UTC (rev 42524)
@@ -139,9 +139,14 @@
       <replacetoken>@NAME@</replacetoken>
     </replace>
 
+    <jar destfile="${resource.lib.dir}/yanel-resource-${resource.name}-${resource.version}-sources.jar"
+      basedir="${resource.java.dir}"
+    />
+
     <artifact:pom id="maven.project.core" file="build/lib/pom.xml"/>
     <artifact:install file="build/lib/yanel-resource-${resource.name}-${resource.version}.jar">
       <pom refid="maven.project.core"/>
+      <attach file="build/lib/yanel-resource-${resource.name}-${resource.version}-sources.jar" classifier="sources"/>
     </artifact:install>
   </target>
 </project>



More information about the Yanel-commits mailing list