ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dona...@apache.org
Subject cvs commit: jakarta-ant/proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs Manifest.java
Date Sun, 27 Jan 2002 23:38:21 GMT
donaldp     02/01/27 15:38:21

  Modified:    proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs
                        Manifest.java
  Log:
  Reuse constants already defined by JDK
  
  Revision  Changes    Path
  1.11      +4 -3      jakarta-ant/proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/Manifest.java
  
  Index: Manifest.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/Manifest.java,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- Manifest.java	20 Jan 2002 00:01:21 -0000	1.10
  +++ Manifest.java	27 Jan 2002 23:38:21 -0000	1.11
  @@ -22,6 +22,7 @@
   import java.util.Enumeration;
   import java.util.Hashtable;
   import java.util.Iterator;
  +import java.util.jar.Attributes;
   import org.apache.myrmidon.api.TaskException;
   import org.apache.tools.ant.Task;
   import org.apache.tools.ant.types.EnumeratedAttribute;
  @@ -38,12 +39,12 @@
       /**
        * The standard manifest version header
        */
  -    public final static String ATTRIBUTE_MANIFEST_VERSION = "Manifest-Version";
  +    public final static String ATTRIBUTE_MANIFEST_VERSION = Attributes.Name.MANIFEST_VERSION.toString();
   
       /**
        * The standard Signature Version header
        */
  -    public final static String ATTRIBUTE_SIGNATURE_VERSION = "Signature-Version";
  +    public final static String ATTRIBUTE_SIGNATURE_VERSION = Attributes.Name.SIGNATURE_VERSION.toString();
   
       /**
        * The Name Attribute is the first in a named section
  @@ -58,7 +59,7 @@
       /**
        * The Class-Path Header is special - it can be duplicated
        */
  -    public final static String ATTRIBUTE_CLASSPATH = "class-path";
  +    public final static String ATTRIBUTE_CLASSPATH = Attributes.Name.CLASS_PATH.toString();
   
       /**
        * Default Manifest version if one is not specified
  
  
  

--
To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message