conor       2003/07/21 17:19:15

  Modified:    src/main/org/apache/tools/ant/taskdefs Manifest.java
  Log:
  Correct case of Class-Path attribute
  
  Revision  Changes    Path
  1.46      +4 -3      ant/src/main/org/apache/tools/ant/taskdefs/Manifest.java
  
  Index: Manifest.java
  ===================================================================
  RCS file: /home/cvs/ant/src/main/org/apache/tools/ant/taskdefs/Manifest.java,v
  retrieving revision 1.45
  retrieving revision 1.46
  diff -u -w -u -r1.45 -r1.46
  --- Manifest.java     19 Jul 2003 11:20:12 -0000      1.45
  +++ Manifest.java     22 Jul 2003 00:19:15 -0000      1.46
  @@ -80,6 +80,7 @@
    * greater than 72 bytes being wrapped and continued on the next
    * line. If an application can not handle the continuation mechanism, it
    * is a defect in the application, not this task.
  + *
    * @author Conor MacNeill
    * @author Stefan Bodewig
    * @author <a href="mailto:[EMAIL PROTECTED]">Jose Alberto Fernandez</a>
  @@ -102,7 +103,7 @@
       public static final String ATTRIBUTE_FROM = "From";
   
       /** The Class-Path Header is special - it can be duplicated */
  -    public static final String ATTRIBUTE_CLASSPATH = "class-path";
  +    public static final String ATTRIBUTE_CLASSPATH = "Class-Path";
   
       /** Default Manifest version if one is not specified */
       public static final  String DEFAULT_MANIFEST_VERSION = "1.0";
  @@ -463,7 +464,7 @@
               while (e.hasMoreElements()) {
                   String attributeName = (String) e.nextElement();
                   Attribute attribute = section.getAttribute(attributeName);
  -                if (attributeName.equals(ATTRIBUTE_CLASSPATH)) {
  +                if (attributeName.equalsIgnoreCase(ATTRIBUTE_CLASSPATH)) {
                       if (classpathAttribute == null) {
                           classpathAttribute = new Attribute();
                           classpathAttribute.setName(ATTRIBUTE_CLASSPATH);
  @@ -609,7 +610,7 @@
               } else {
                   // classpath attributes go into a vector
                   String attributeKey = attribute.getKey();
  -                if (attributeKey.equals(ATTRIBUTE_CLASSPATH)) {
  +                if (attributeKey.equalsIgnoreCase(ATTRIBUTE_CLASSPATH)) {
                       Attribute classpathAttribute =
                           (Attribute) attributes.get(attributeKey);
   
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to