You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by ma...@apache.org on 2005/11/29 07:25:14 UTC
svn commit: r349657 - in /jakarta/commons/proper/fileupload/trunk: maven.xml
project.xml
Author: martinc
Date: Mon Nov 28 22:25:09 2005
New Revision: 349657
URL: http://svn.apache.org/viewcvs?rev=349657&view=rev
Log:
Build updates:
- Include NOTICE.txt in the jar file and distributions.
- Include xdocs in source distribution.
- Create MD5 checksums for distributions.
Modified:
jakarta/commons/proper/fileupload/trunk/maven.xml
jakarta/commons/proper/fileupload/trunk/project.xml
Modified: jakarta/commons/proper/fileupload/trunk/maven.xml
URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/fileupload/trunk/maven.xml?rev=349657&r1=349656&r2=349657&view=diff
==============================================================================
--- jakarta/commons/proper/fileupload/trunk/maven.xml (original)
+++ jakarta/commons/proper/fileupload/trunk/maven.xml Mon Nov 28 22:25:09 2005
@@ -1,5 +1,5 @@
<!--
- Copyright 2001-2004 The Apache Software Foundation
+ Copyright 2001-2005 The Apache Software Foundation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@@ -13,8 +13,9 @@
See the License for the specific language governing permissions and
limitations under the License.
-->
-<project default="jar:jar"
- xmlns:j="jelly:core">
+
+<project default="java:jar"
+ xmlns:ant="jelly:ant">
<!-- ================================================================== -->
<!-- START : C O M M O N S - B U I L D -->
@@ -22,10 +23,10 @@
<!-- Required: Look and Feel for documentation within distributions -->
<!-- ================================================================== -->
<postGoal name="xdoc:copy-resources">
- <copy todir="${basedir}/target/docs/style/" failonerror="false">
+ <copy todir="${maven.build.dir}/docs/style/" failonerror="false">
<fileset dir="${basedir}/../commons-build/xdocs/style">
- <include name='**/*'/>
- <exclude name='**/CVS/**'/>
+ <include name='**/*'/>
+ <exclude name='**/CVS/**'/>
</fileset>
</copy>
</postGoal>
@@ -33,4 +34,66 @@
<!-- END: C O M M O N S - B U I L D -->
<!-- ================================================================== -->
+ <!-- ================================================================== -->
+ <!-- Copy into the binary distribution -->
+ <!-- ================================================================== -->
+ <postGoal name="dist:prepare-bin-filesystem">
+
+ <!-- Copy the NOTICE -->
+ <copy todir="${maven.dist.bin.assembly.dir}">
+ <fileset file='${basedir}/NOTICE.txt'/>
+ </copy>
+
+ </postGoal>
+
+ <!-- ================================================================== -->
+ <!-- Copy into the source distribution -->
+ <!-- ================================================================== -->
+ <postGoal name="dist:prepare-src-filesystem">
+
+ <!-- Copy the NOTICE -->
+ <copy todir="${maven.dist.src.assembly.dir}">
+ <fileset file='${basedir}/NOTICE.txt'/>
+ <!-- fileset file="${basedir}/RELEASE-NOTES.readme"/ -->
+ </copy>
+
+ <!-- Copy xdoc files -->
+ <copy todir="${maven.dist.src.assembly.dir}/xdocs">
+ <fileset dir="${basedir}/xdocs"/>
+ </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 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>
+
</project>
Modified: jakarta/commons/proper/fileupload/trunk/project.xml
URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/fileupload/trunk/project.xml?rev=349657&r1=349656&r2=349657&view=diff
==============================================================================
--- jakarta/commons/proper/fileupload/trunk/project.xml (original)
+++ jakarta/commons/proper/fileupload/trunk/project.xml Mon Nov 28 22:25:09 2005
@@ -198,6 +198,16 @@
</resource>
</resources>
</unitTest>
+
+ <resources>
+ <resource>
+ <directory>${basedir}</directory>
+ <targetPath>META-INF</targetPath>
+ <includes>
+ <include>NOTICE.txt</include>
+ </includes>
+ </resource>
+ </resources>
</build>
<reports>
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org