Browse Source

Use java.runtime.version instead of java.vm.version in Created-By manifest attribute. Submitted by Gilbert Rebhan. PR 47632

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@801246 13f79535-47bb-0310-9956-ffa450edef68
master
Stefan Bodewig 16 years ago
parent
commit
9ca903fd41
3 changed files with 8 additions and 2 deletions
  1. +2
    -0
      CONTRIBUTORS
  2. +4
    -0
      WHATSNEW
  3. +2
    -2
      src/main/org/apache/tools/ant/taskdefs/Manifest.java

+ 2
- 0
CONTRIBUTORS View File

@@ -105,6 +105,8 @@ Gautam Guliani
Georges-Etienne Legendre
Gero Vermaas
Gerrit Riessen
Gilbert Rebhan
Gilles Scokart
Glenn McAllister
Glenn Twiggs
Greg Nelson


+ 4
- 0
WHATSNEW View File

@@ -141,6 +141,10 @@ Changes that could break older environments:
set failOnError to false.
Bugzilla Report 47362.

* Ant now uses the java.runtime.version instead of java.vm.version
system property for the Created-By Manifest attribute.
Bugzilla Report 47632.

Fixed bugs:
-----------



+ 2
- 2
src/main/org/apache/tools/ant/taskdefs/Manifest.java View File

@@ -746,8 +746,8 @@ public class Manifest {
insr = new InputStreamReader(in, "UTF-8");
Manifest defaultManifest = new Manifest(insr);
Attribute createdBy = new Attribute("Created-By",
System.getProperty("java.vm.version") + " ("
+ System.getProperty("java.vm.vendor") + ")");
System.getProperty("java.runtime.version") + " ("
+ System.getProperty("java.runtime.vendor") + ")");
defaultManifest.getMainSection().storeAttribute(createdBy);
return defaultManifest;
} catch (UnsupportedEncodingException e) {


Loading…
Cancel
Save