Browse Source

Extract constant

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@272253 13f79535-47bb-0310-9956-ffa450edef68
master
Peter Donald 23 years ago
parent
commit
233e04e453
1 changed files with 6 additions and 1 deletions
  1. +6
    -1
      proposal/myrmidon/src/java/org/apache/antlib/extensions/JarLibManifestTask.java

+ 6
- 1
proposal/myrmidon/src/java/org/apache/antlib/extensions/JarLibManifestTask.java View File

@@ -52,6 +52,11 @@ public final class JarLibManifestTask
*/
private static final String MANIFEST_VERSION = "1.0";

/**
* "Created-By" string used when creating manifest.
*/
private static final String CREATED_BY = "Created-By";

/**
* The library to display information about.
*/
@@ -180,7 +185,7 @@ public final class JarLibManifestTask
final Attributes attributes = manifest.getMainAttributes();

attributes.put( Attributes.Name.MANIFEST_VERSION, MANIFEST_VERSION );
attributes.putValue( "Created-By", Constants.BUILD_DESCRIPTION );
attributes.putValue( CREATED_BY, Constants.BUILD_DESCRIPTION );

appendExtraAttributes( attributes );



Loading…
Cancel
Save