[Yanel-commits] rev 27602 - in public/yanel/trunk/src/contributions/resources/pdf: . src/build

jon at wyona.com jon at wyona.com
Mon Sep 24 17:36:00 CEST 2007


Author: jon
Date: 2007-09-24 17:35:59 +0200 (Mon, 24 Sep 2007)
New Revision: 27602

Added:
   public/yanel/trunk/src/contributions/resources/pdf/src/build/pom.xml
Modified:
   public/yanel/trunk/src/contributions/resources/pdf/build.xml
Log:
added pom.xml.

added install-jar target to build.xml.

Modified: public/yanel/trunk/src/contributions/resources/pdf/build.xml
===================================================================
--- public/yanel/trunk/src/contributions/resources/pdf/build.xml	2007-09-24 15:32:58 UTC (rev 27601)
+++ public/yanel/trunk/src/contributions/resources/pdf/build.xml	2007-09-24 15:35:59 UTC (rev 27602)
@@ -46,4 +46,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>

Added: public/yanel/trunk/src/contributions/resources/pdf/src/build/pom.xml
===================================================================
--- public/yanel/trunk/src/contributions/resources/pdf/src/build/pom.xml	                        (rev 0)
+++ public/yanel/trunk/src/contributions/resources/pdf/src/build/pom.xml	2007-09-24 15:35:59 UTC (rev 27602)
@@ -0,0 +1,8 @@
+<?xml version="1.0"?>
+
+<project>
+  <modelVersion>4.0.0</modelVersion>
+  <groupId>wyona-org-yanel</groupId>
+  <artifactId>yanel-resource- at NAME@</artifactId>
+  <version>@VERSION@</version>
+</project>


Property changes on: public/yanel/trunk/src/contributions/resources/pdf/src/build/pom.xml
___________________________________________________________________
Name: svn:eol-style
   + native



More information about the Yanel-commits mailing list