summaryrefslogtreecommitdiff
path: root/libjava/classpath
diff options
context:
space:
mode:
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>2009-10-22 15:41:32 +0000
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>2009-10-22 15:41:32 +0000
commit175ae0d3d12f8832f4d0827d81c24138671380f6 (patch)
tree1a4ea3f3a9c761c67316f3ac3b9417142b9d69b3 /libjava/classpath
parent21ce3cc7d082de3b70be7906137a543e61edf0d4 (diff)
downloadgcc-175ae0d3d12f8832f4d0827d81c24138671380f6.tar.gz
2009-10-22 Richard Guenther <rguenther@suse.de>
PR cp-tools/39177 * tools/gnu/classpath/tools/jar/Creator.java (writeCommandLineEntries): Do not use uninitialized manifest. * tools/classes/gnu/classpath/tools/jar/Creator.class: Re-generated. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@153461 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/classpath')
-rw-r--r--libjava/classpath/ChangeLog7
-rw-r--r--libjava/classpath/tools/classes/gnu/classpath/tools/jar/Creator.classbin7259 -> 6001 bytes
-rw-r--r--libjava/classpath/tools/gnu/classpath/tools/jar/Creator.java11
3 files changed, 14 insertions, 4 deletions
diff --git a/libjava/classpath/ChangeLog b/libjava/classpath/ChangeLog
index 475e6bdc1b3..a2df28c46cf 100644
--- a/libjava/classpath/ChangeLog
+++ b/libjava/classpath/ChangeLog
@@ -1,3 +1,10 @@
+2009-10-22 Richard Guenther <rguenther@suse.de>
+
+ PR cp-tools/39177
+ * tools/gnu/classpath/tools/jar/Creator.java (writeCommandLineEntries):
+ Do not use uninitialized manifest.
+ * tools/classes/gnu/classpath/tools/jar/Creator.class: Re-generated.
+
2009-08-26 Dave Korn <dave.korn.cygwin@gmail.com>
* ltmain.sh (removedotparts): Don't use comma as 's' separator.
diff --git a/libjava/classpath/tools/classes/gnu/classpath/tools/jar/Creator.class b/libjava/classpath/tools/classes/gnu/classpath/tools/jar/Creator.class
index 517fe0c7a33..ad4cc74f732 100644
--- a/libjava/classpath/tools/classes/gnu/classpath/tools/jar/Creator.class
+++ b/libjava/classpath/tools/classes/gnu/classpath/tools/jar/Creator.class
Binary files differ
diff --git a/libjava/classpath/tools/gnu/classpath/tools/jar/Creator.java b/libjava/classpath/tools/gnu/classpath/tools/jar/Creator.java
index a6b6112caa1..6ffce18ac05 100644
--- a/libjava/classpath/tools/gnu/classpath/tools/jar/Creator.java
+++ b/libjava/classpath/tools/gnu/classpath/tools/jar/Creator.java
@@ -216,11 +216,14 @@ public class Creator
manifest = createManifest(parameters);
/* If no version is specified, provide the same manifest version default
* as Sun's jar tool */
- Attributes attr = manifest.getMainAttributes();
- if (attr.getValue(Attributes.Name.MANIFEST_VERSION) == null)
- attr.putValue(Attributes.Name.MANIFEST_VERSION.toString(), "1.0");
- attr.putValue("Created-By", System.getProperty("java.version") +
+ if (parameters.wantManifest)
+ {
+ Attributes attr = manifest.getMainAttributes();
+ if (attr.getValue(Attributes.Name.MANIFEST_VERSION) == null)
+ attr.putValue(Attributes.Name.MANIFEST_VERSION.toString(), "1.0");
+ attr.putValue("Created-By", System.getProperty("java.version") +
" (" + System.getProperty("java.vendor") + ")");
+ }
outputStream = new JarOutputStream(os, manifest);
// FIXME: this sets the method too late for the manifest file.
outputStream.setMethod(parameters.storageMode);