You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by ni...@apache.org on 2005/11/27 16:45:41 UTC
svn commit: r349249 - /jakarta/commons/proper/resources/trunk/maven.xml
Author: niallp
Date: Sun Nov 27 07:45:34 2005
New Revision: 349249
URL: http://svn.apache.org/viewcvs?rev=349249&view=rev
Log:
Add checksums to maven build and change test jar to include version number in its name and add manifest attributes
Modified:
jakarta/commons/proper/resources/trunk/maven.xml
Modified: jakarta/commons/proper/resources/trunk/maven.xml
URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/resources/trunk/maven.xml?rev=349249&r1=349248&r2=349249&view=diff
==============================================================================
--- jakarta/commons/proper/resources/trunk/maven.xml (original)
+++ jakarta/commons/proper/resources/trunk/maven.xml Sun Nov 27 07:45:34 2005
@@ -36,9 +36,23 @@
<!-- ================================================================== -->
<postGoal name="jar:jar">
- <ant:jar destfile="${maven.build.dir}/commons-resources-tests.jar">
- <fileset dir="${maven.build.dir}/test-classes"/>
- </ant:jar>
+ <ant:jar destfile="${maven.build.dir}/${pom.artifactId}-tests-${pom.currentVersion}.jar">
+ <fileset dir="${maven.build.dir}/test-classes"/>
+ <fileset dir=".">
+ <include name="LICENSE.txt"/>
+ <include name="NOTICE.txt"/>
+ </fileset>
+ <ant:manifest>
+ <attribute name="Specification-Title" value="${pom.name} Tests"/>
+ <attribute name="Specification-Version" value="${pom.currentVersion}"/>
+ <attribute name="Specification-Vendor" value="${pom.organization.name}"/>
+ <attribute name="Implementation-Title" value="${pom.name} Tests"/>
+ <attribute name="Implementation-Vendor" value="${pom.organization.name}"/>
+ <attribute name="Implementation-Version" value="${pom.currentVersion}"/>
+ <attribute name="Package" value="${pom.package}"/>
+ </ant:manifest>
+ </ant:jar>
+
</postGoal>
<!-- ================================================================== -->
@@ -75,6 +89,43 @@
<include name="*.txt"/>
</fileset>
</copy>
+
+ </postGoal>
+
+ <!-- ================================================================== -->
+ <!-- Create MD5 Check Sums -->
+ <!-- ================================================================== -->
+ <postGoal name="dist">
+
+ <!-- create checksum for jar -->
+ <ant:checksum file="${maven.build.dir}/${pom.artifactId}-${pom.currentVersion}.jar" property="md5"/>
+ <ant:echo message="${md5} *${pom.artifactId}-${pom.currentVersion}.jar"
+ file="${maven.build.dir}/${pom.artifactId}-${pom.currentVersion}.jar.md5" />
+
+ <!-- create checksum for tests jar -->
+ <ant:checksum file="${maven.build.dir}/${pom.artifactId}-tests-${pom.currentVersion}.jar" property="md5"/>
+ <ant:echo message="${md5} *${pom.artifactId}-tests-${pom.currentVersion}.jar"
+ file="${maven.build.dir}/${pom.artifactId}-tests-${pom.currentVersion}.jar.md5" />
+
+ <!-- create checksum for binary zip -->
+ <ant:checksum file="${maven.dist.dir}/${pom.artifactId}-${pom.currentVersion}.zip" property="md5"/>
+ <ant:echo message="${md5} *${pom.artifactId}-${pom.currentVersion}.zip"
+ file="${maven.dist.dir}/${pom.artifactId}-${pom.currentVersion}.zip.md5" />
+
+ <!-- create checksum for binary tar.gz -->
+ <ant:checksum file="${maven.dist.dir}/${pom.artifactId}-${pom.currentVersion}.tar.gz" property="md5"/>
+ <ant:echo message="${md5} *${pom.artifactId}-${pom.currentVersion}.tar.gz"
+ file="${maven.dist.dir}/${pom.artifactId}-${pom.currentVersion}.tar.gz.md5" />
+
+ <!-- create checksum for source zip -->
+ <ant:checksum file="${maven.dist.dir}/${pom.artifactId}-${pom.currentVersion}-src.zip" property="md5"/>
+ <ant:echo message="${md5} *${pom.artifactId}-${pom.currentVersion}-src.zip"
+ file="${maven.dist.dir}/${pom.artifactId}-${pom.currentVersion}-src.zip.md5" />
+
+ <!-- create checksum for source tar.gz -->
+ <ant:checksum file="${maven.dist.dir}/${pom.artifactId}-${pom.currentVersion}-src.tar.gz" property="md5"/>
+ <ant:echo message="${md5} *${pom.artifactId}-${pom.currentVersion}-src.tar.gz"
+ file="${maven.dist.dir}/${pom.artifactId}-${pom.currentVersion}-src.tar.gz.md5" />
</postGoal>
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org