diff options
author | Christopher Vogt <oss.nsp@cvogt.org> | 2016-09-14 10:39:26 +0100 |
---|---|---|
committer | Christopher Vogt <oss.nsp@cvogt.org> | 2016-09-14 10:39:26 +0100 |
commit | f449599288277add5778f6232b2d408ea3b2c44c (patch) | |
tree | 642da877833bf4a88c40d70b49cc59c1609a53c2 /stage2/Lib.scala | |
parent | 85d2ae617c6b475537ab657d8c3b361f051f0539 (diff) | |
download | cbt-f449599288277add5778f6232b2d408ea3b2c44c.tar.gz cbt-f449599288277add5778f6232b2d408ea3b2c44c.tar.bz2 cbt-f449599288277add5778f6232b2d408ea3b2c44c.zip |
Manifest used java.runtime.version for CreatedBy, which gave away info on the java update version, which may be a security risk for the releaser. So now we just say CBT created in instead similar to what other tools are doing.
Diffstat (limited to 'stage2/Lib.scala')
-rw-r--r-- | stage2/Lib.scala | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/stage2/Lib.scala b/stage2/Lib.scala index 5b175c1..c7580d4 100644 --- a/stage2/Lib.scala +++ b/stage2/Lib.scala @@ -276,9 +276,8 @@ final class Lib(logger: Logger) extends Stage1Lib(logger) with Scaffold{ jarFile.getParentFile.mkdirs logger.lib("Start packaging "++jarFile.string) val manifest = new Manifest() - manifest.getMainAttributes.put(Attributes.Name.MANIFEST_VERSION, "1.0") - manifest.getMainAttributes.putValue("Created-By", - Option(System.getProperty("java.runtime.version")) getOrElse "1.7.0_06 (Oracle Corporation)") + manifest.getMainAttributes.put( Attributes.Name.MANIFEST_VERSION, "1.0" ) + manifest.getMainAttributes.putValue( "Created-By", "Chris' Build Tool" ) mainClass foreach { className => manifest.getMainAttributes.put(Attributes.Name.MAIN_CLASS, className) } |