ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 6180] New: - [PATCH] Package Version Identification in ant.jar manifest file
Date Fri, 01 Feb 2002 15:31:24 GMT
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:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message