bodewig     2004/04/23 07:18:15

  Modified:    .        WHATSNEW
               src/main/org/apache/tools/ant/taskdefs/optional/script
                        ScriptDef.java
  Log:
  Make attribute und element names in <scriptdef> lowercase (like <macrodef> 
does) to avoid problems with name="Foo" -> the task X doesn\'t support the 
attribute foo
  
  Revision  Changes    Path
  1.595     +2 -0      ant/WHATSNEW
  
  Index: WHATSNEW
  ===================================================================
  RCS file: /home/cvs/ant/WHATSNEW,v
  retrieving revision 1.594
  retrieving revision 1.595
  diff -u -r1.594 -r1.595
  --- WHATSNEW  22 Apr 2004 21:36:34 -0000      1.594
  +++ WHATSNEW  23 Apr 2004 14:18:14 -0000      1.595
  @@ -125,6 +125,8 @@
     cases; when split file-property, files were only created if
     writes were performed.
   
  +* fixed case handling of scriptdef attributes and elements.
  +
   Other changes:
   --------------
   
  
  
  
  1.13      +3 -2      
ant/src/main/org/apache/tools/ant/taskdefs/optional/script/ScriptDef.java
  
  Index: ScriptDef.java
  ===================================================================
  RCS file: 
/home/cvs/ant/src/main/org/apache/tools/ant/taskdefs/optional/script/ScriptDef.java,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -r1.12 -r1.13
  --- ScriptDef.java    9 Mar 2004 16:48:35 -0000       1.12
  +++ ScriptDef.java    23 Apr 2004 14:18:15 -0000      1.13
  @@ -27,6 +27,7 @@
   import java.util.Map;
   import java.util.HashMap;
   import java.util.List;
  +import java.util.Locale;
   import java.util.ArrayList;
   import java.util.Iterator;
   import java.util.Set;
  @@ -93,7 +94,7 @@
            * @param name the attribute name
            */
           public void setName(String name) {
  -            this.name = name;
  +            this.name = name.toLowerCase(Locale.US);
           }
       }
   
  @@ -125,7 +126,7 @@
            * @param name the name of this nested element
            */
           public void setName(String name) {
  -            this.name = name;
  +            this.name = name.toLowerCase(Locale.US);
           }
   
           /**
  
  
  

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

Reply via email to