[Yanel-commits] rev 27821 - public/yanel/contributions/resources/redirect

michi at wyona.com michi at wyona.com
Fri Sep 28 14:39:34 CEST 2007


Author: michi
Date: 2007-09-28 14:39:33 +0200 (Fri, 28 Sep 2007)
New Revision: 27821

Modified:
   public/yanel/contributions/resources/redirect/build.xml
Log:
maven stuff added

Modified: public/yanel/contributions/resources/redirect/build.xml
===================================================================
--- public/yanel/contributions/resources/redirect/build.xml	2007-09-28 12:37:26 UTC (rev 27820)
+++ public/yanel/contributions/resources/redirect/build.xml	2007-09-28 12:39:33 UTC (rev 27821)
@@ -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