[Yanel-commits] rev 25851 - public/yanel/trunk/src/contributions/resources/wiki

michi at wyona.com michi at wyona.com
Tue Jul 10 10:17:30 CEST 2007


Author: michi
Date: 2007-07-10 10:17:29 +0200 (Tue, 10 Jul 2007)
New Revision: 25851

Modified:
   public/yanel/trunk/src/contributions/resources/wiki/build.xml
Log:
install maven jar target added

Modified: public/yanel/trunk/src/contributions/resources/wiki/build.xml
===================================================================
--- public/yanel/trunk/src/contributions/resources/wiki/build.xml	2007-07-10 08:17:05 UTC (rev 25850)
+++ public/yanel/trunk/src/contributions/resources/wiki/build.xml	2007-07-10 08:17:29 UTC (rev 25851)
@@ -47,4 +47,20 @@
       <mapper type="flatten"/>
     </copy>
   </target>
+
+  <target name="install-jar" description="Place jar file for this resource into local maven repository" depends="init, clean, compile" xmlns:artifact="antlib:org.apache.maven.artifact.ant">
+    <copy file="src/build/pom.xml" tofile="build/lib/pom.xml"/>
+
+    <replace file="build/lib/pom.xml" value="${resource.version}">
+      <replacetoken>@VERSION@</replacetoken>
+    </replace>
+    <replace file="build/lib/pom.xml" value="${resource.name}">
+      <replacetoken>@NAME@</replacetoken>
+    </replace>
+
+    <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"/>
+    </artifact:install>
+  </target>
 </project>




More information about the Yanel-commits mailing list