You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by bu...@apache.org on 2002/02/01 16:31:24 UTC
DO NOT REPLY [Bug 6180] New: -
[PATCH] Package Version Identification in ant.jar manifest file
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6180>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6180
[PATCH] Package Version Identification in ant.jar manifest file
Summary: [PATCH] Package Version Identification in ant.jar
manifest file
Product: Ant
Version: 1.5 alpha (nightly)
Platform: Other
OS/Version: Other
Status: NEW
Severity: Enhancement
Priority: Other
Component: Build Process
AssignedTo: ant-dev@jakarta.apache.org
ReportedBy: hboutemy@business-village.fr
Here is a patch to include Ant's version in the manifest file.
This way, determining the version of ant.jar is *standard* (and easy).
PVI specification is available since jdk 1.2, it's very helpfull, but it is
quite unused...
see http://java.sun.com/products/jdk/1.2/docs/guide/versioning/index.html
Remark : I'm not sure if the value of Implementation-Version as the build-date
is really a good choice...
Index: build.xml
===================================================================
RCS file: /home/cvspublic/jakarta-ant/build.xml,v
retrieving revision 1.233
diff -u -r1.233 build.xml
--- build.xml 1 Feb 2002 07:34:33 -0000 1.233
+++ build.xml 1 Feb 2002 15:28:53 -0000
@@ -343,6 +343,12 @@
<filterset refid="ant.filters"/>
</copy>
+ <copy file="${manifest}"
+ toFile="${build.classes}/manifest"
+ overwrite="true">
+ <filterset refid="ant.filters"/>
+ </copy>
+
<copy todir="${build.classes}/${optional.package}/junit/xsl">
<fileset dir="${etc.dir}">
<include name="junit-frames.xsl" />
@@ -365,7 +371,8 @@
<jar destfile="${build.lib}/${name}.jar"
basedir="${build.classes}"
- manifest="${manifest}">
+ manifest="${build.classes}/manifest">
+ <exclude name="manifest" />
<exclude name="org/apache/tools/ant/taskdefs/optional/**" />
<metainf dir="${build.dir}" includes="LICENSE.txt"/>
</jar>
Index: manifest
===================================================================
RCS file: /home/cvspublic/jakarta-ant/src/etc/manifest,v
retrieving revision 1.3
diff -u -r1.3 manifest
--- manifest 1 Aug 2001 21:37:50 -0000 1.3
+++ manifest 1 Feb 2002 15:07:34 -0000
@@ -2,4 +2,10 @@
Main-Class: org.apache.tools.ant.Main
Class-Path: jaxp.jar parser.jar crimson.jar optional.jar xalan.jar
-
+Name: org/apache/tools/ant
+Specification-Title: Apache Ant
+Specification-Vendor: Apache Jakarta (http://jakarta.apache.org/)
+Specification-Version: @VERSION@
+Implementation-Title: org.apache.tools.ant
+Implementation-Vendor: Apache Jakarta (http://jakarta.apache.org/)
+Implementation-Version: @DATE@
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>