commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bspeak...@apache.org
Subject svn commit: r578968 - /commons/proper/email/trunk/pom.xml
Date Mon, 24 Sep 2007 21:06:19 GMT
Author: bspeakmon
Date: Mon Sep 24 14:06:18 2007
New Revision: 578968

URL: http://svn.apache.org/viewvc?rev=578968&view=rev
Log:
- use custom release profile for source/javadoc jar generation instead of maven plugins;
  tasks shamelessly stolen from io 1.3.2 POM, thanks Jochen

Modified:
    commons/proper/email/trunk/pom.xml

Modified: commons/proper/email/trunk/pom.xml
URL: http://svn.apache.org/viewvc/commons/proper/email/trunk/pom.xml?rev=578968&r1=578967&r2=578968&view=diff
==============================================================================
--- commons/proper/email/trunk/pom.xml (original)
+++ commons/proper/email/trunk/pom.xml Mon Sep 24 14:06:18 2007
@@ -330,4 +330,49 @@
         </plugins>
     </reporting>
 
+    <profiles>
+        <profile>
+            <id>release</id>
+            <build>
+                <plugins>
+                    <plugin>
+                        <artifactId>maven-antrun-plugin</artifactId>
+                        <executions>
+                            <execution>
+                                <goals>
+                                    <goal>run</goal>
+                                </goals>
+                                <phase>package</phase>
+                                <configuration>
+                                    <tasks>
+                                        <copy todir="${project.build.directory}/site/api-release">
+                                            <fileset dir="${project.build.directory}/site/apidocs"/>
+                                        </copy>
+                                        <zip destfile="${project.build.directory}/${artifactId}-${version}-javadoc.jar.new">
+                                            <zipfileset src="${project.build.directory}/${artifactId}-${version}-javadoc.jar"/>
+                                            <zipfileset dir="." prefix="META-INF">
+                                                <include name="LICENSE.txt"/>
+                                                <include name="NOTICE.txt"/>
+                                            </zipfileset>
+                                        </zip>
+                                        <move file="${project.build.directory}/${artifactId}-${version}-javadoc.jar.new"
+                                            tofile="${project.build.directory}/${artifactId}-${version}-javadoc.jar"/>
+                                        <zip destfile="${project.build.directory}/${artifactId}-${version}-sources.jar.new">
+                                            <zipfileset src="${project.build.directory}/${artifactId}-${version}-sources.jar"/>
+                                            <zipfileset dir="." prefix="META-INF">
+                                                <include name="LICENSE.txt"/>
+                                                <include name="NOTICE.txt"/>
+                                            </zipfileset>
+                                        </zip>
+                                        <move file="${project.build.directory}/${artifactId}-${version}-sources.jar.new"
+                                            tofile="${project.build.directory}/${artifactId}-${version}-sources.jar"/>
+                                    </tasks>
+				</configuration>
+                            </execution>
+                        </executions>
+                    </plugin>
+                </plugins>  
+            </build>
+        </profile>
+    </profiles>
 </project>



Mime
View raw message