[jdom-interest] [PATCH] wrong jar version

Jeff Turner jeff at socialchange.net.au
Tue Jan 8 04:50:24 PST 2002


Sigh.. this time WITH the patch.

--Jeff

On Tue, Jan 08, 2002 at 09:55:43PM +1100, Jeff Turner wrote:
> Buggerit.. I forgot all the Specification-Version,
> Implementation-Version, etc manifest entries ;P Sorry.. the attached
> patch fixes those too (assuming you applied the previous patch).
> 
> There's two new Ant properties:
> 
> version.spec  -> 'Specification-Version' entry == the last known
> 'stable' API point to which the implementation conforms, which I've
> guessed is 0.7
> 
> version.impl  -> 'Implementation-Version' entry == current API version
> ('1.0 beta8-dev')
> 
> 
> thanks,
> 
> --Jeff
-------------- next part --------------
Index: build.xml
===================================================================
RCS file: /home/cvspublic/jdom/build.xml,v
retrieving revision 1.27
diff -u -r1.27 build.xml
--- build.xml	2002/01/07 09:32:15	1.27
+++ build.xml	2002/01/08 18:26:10
@@ -14,6 +14,8 @@
     <property name="Name" value="JDOM"/>
     <property name="name" value="jdom"/>
     <property name="version" value="1.0beta8-dev"/>
+    <property name="version.impl" value="1.0 beta8-dev"/>
+    <property name="version.spec" value="0.7"/>
     <property name="year" value="2001"/>
 
     <echo message="----------- ${Name} ${version} [${year}] ------------"/>
@@ -182,15 +184,18 @@
   <target name="package" depends="compile,about">
     <fixcrlf srcdir="." includes="**/*.bat" excludes="build*.*" eol="crlf"/>
     <fixcrlf srcdir="." includes="**/*.sh" excludes="build*.*" eol="lf"/>
+
+    <!-- Filters defined specifically for updating the manifest -->
+    <filter token="version.spec" value="${version.spec}"/>
+    <filter token="version.impl" value="${version.impl}"/>
     <copy todir="${build.dest}/META-INF"
           filtering="yes">
-      <fileset dir="${package.dir}/META-INF">
-        <exclude name="MANIFEST.MF" />
-      </fileset>
+          <fileset dir="${package.dir}/META-INF"/>
     </copy>
     <jar jarfile="${build.dir}/${name}.jar"
          basedir="${build.dest}"
-         manifest="${package.dir}/META-INF/MANIFEST.MF"/>
+         excludes="META-INF/MANIFEST.MF"
+         manifest="${build.dest}/META-INF/MANIFEST.MF"/>
   </target>
 
   <!-- =================================================================== -->
Index: package/META-INF/MANIFEST.MF
===================================================================
RCS file: /home/cvspublic/jdom/package/META-INF/MANIFEST.MF,v
retrieving revision 1.3
diff -u -r1.3 MANIFEST.MF
--- package/META-INF/MANIFEST.MF	2001/06/25 18:41:20	1.3
+++ package/META-INF/MANIFEST.MF	2002/01/08 18:26:10
@@ -4,32 +4,32 @@
 
 Name: org/jdom/
 Specification-Title: JDOM Classes
-Specification-Version: 0.7
+Specification-Version: @version.spec@
 Specification-Vendor: jdom.org
 Implementation-Title: org.jdom
-Implementation-Version: 1.0 beta7
+Implementation-Version: @version.impl@
 Implementation-Vendor: jdom.org
 
 Name: org/jdom/input/
 Specification-Title: JDOM Input Classes
-Specification-Version: 0.7
+Specification-Version: @version.spec@
 Specification-Vendor: jdom.org
 Implementation-Title: org.jdom.input
-Implementation-Version: 1.0 beta7
+Implementation-Version: @version.impl@
 Implementation-Vendor: jdom.org
 
 Name: org/jdom/output/
 Specification-Title: JDOM Output Classes
-Specification-Version: 0.7
+Specification-Version: @version.spec@
 Specification-Vendor: jdom.org
 Implementation-Title: org.jdom.output
-Implementation-Version: 1.0 beta7
+Implementation-Version: @version.impl@
 Implementation-Vendor: jdom.org
 
 Name: org/jdom/adapters/
 Specification-Title: JDOM Adapter Classes
-Specification-Version: 0.7
+Specification-Version: @version.spec@
 Specification-Vendor: jdom.org
 Implementation-Title: org.jdom.adapter
-Implementation-Version: 1.0 beta7
+Implementation-Version: @version.impl@
 Implementation-Vendor: jdom.org


More information about the jdom-interest mailing list