Browse Source

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

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@276390 13f79535-47bb-0310-9956-ffa450edef68
master
Stefan Bodewig 21 years ago
parent
commit
1be95e51fd
2 changed files with 5 additions and 2 deletions
  1. +2
    -0
      WHATSNEW
  2. +3
    -2
      src/main/org/apache/tools/ant/taskdefs/optional/script/ScriptDef.java

+ 2
- 0
WHATSNEW View File

@@ -125,6 +125,8 @@ Fixed bugs:
cases; when split file-property, files were only created if cases; when split file-property, files were only created if
writes were performed. writes were performed.


* fixed case handling of scriptdef attributes and elements.

Other changes: Other changes:
-------------- --------------




+ 3
- 2
src/main/org/apache/tools/ant/taskdefs/optional/script/ScriptDef.java View File

@@ -27,6 +27,7 @@ import org.apache.tools.ant.taskdefs.DefBase;
import java.util.Map; import java.util.Map;
import java.util.HashMap; import java.util.HashMap;
import java.util.List; import java.util.List;
import java.util.Locale;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Iterator; import java.util.Iterator;
import java.util.Set; import java.util.Set;
@@ -93,7 +94,7 @@ public class ScriptDef extends DefBase {
* @param name the attribute name * @param name the attribute name
*/ */
public void setName(String name) { public void setName(String name) {
this.name = name;
this.name = name.toLowerCase(Locale.US);
} }
} }


@@ -125,7 +126,7 @@ public class ScriptDef extends DefBase {
* @param name the name of this nested element * @param name the name of this nested element
*/ */
public void setName(String name) { public void setName(String name) {
this.name = name;
this.name = name.toLowerCase(Locale.US);
} }


/** /**


Loading…
Cancel
Save