ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From peterrei...@apache.org
Subject cvs commit: ant/docs/manual/CoreTypes custom-programming.html
Date Wed, 15 Oct 2003 15:46:20 GMT
peterreilly    2003/10/15 08:46:20

  Modified:    src/main/org/apache/tools/ant Tag: ANT_16_BRANCH
                        UnknownElement.java IntrospectionHelper.java
               docs/manual/CoreTypes Tag: ANT_16_BRANCH
                        custom-programming.html
  Log:
  Sync with HEAD
  
  Revision  Changes    Path
  No                   revision
  No                   revision
  1.63.2.3  +2 -8      ant/src/main/org/apache/tools/ant/UnknownElement.java
  
  Index: UnknownElement.java
  ===================================================================
  RCS file: /home/cvs/ant/src/main/org/apache/tools/ant/UnknownElement.java,v
  retrieving revision 1.63.2.2
  retrieving revision 1.63.2.3
  diff -u -r1.63.2.2 -r1.63.2.3
  --- UnknownElement.java	14 Oct 2003 09:00:06 -0000	1.63.2.2
  +++ UnknownElement.java	15 Oct 2003 15:46:20 -0000	1.63.2.3
  @@ -57,7 +57,6 @@
   import java.util.ArrayList;
   import java.util.Iterator;
   import java.util.List;
  -import java.util.Locale;
   import java.io.IOException;
   
   /**
  @@ -515,13 +514,8 @@
       private boolean handleChild(IntrospectionHelper ih,
                                   Object parent, UnknownElement child,
                                   RuntimeConfigurable childWrapper) {
  -        // backwards compatibility - element names of nested
  -        // elements have been all lower-case in Ant, except for
  -        // TaskContainers
  -        // This does not work too good for typedefed elements...
  -        String childName =
  -            ProjectHelper.genComponentName(
  -                child.getNamespace(), child.getTag().toLowerCase(Locale.US));
  +        String childName = ProjectHelper.genComponentName(
  +            child.getNamespace(), child.getTag());
           if (ih.supportsNestedElement(childName)) {
               IntrospectionHelper.Creator creator =
                   ih.getElementCreator(getProject(), parent, childName);
  
  
  
  1.65.2.1  +5 -3      ant/src/main/org/apache/tools/ant/IntrospectionHelper.java
  
  Index: IntrospectionHelper.java
  ===================================================================
  RCS file: /home/cvs/ant/src/main/org/apache/tools/ant/IntrospectionHelper.java,v
  retrieving revision 1.65
  retrieving revision 1.65.2.1
  diff -u -r1.65 -r1.65.2.1
  --- IntrospectionHelper.java	13 Sep 2003 12:58:33 -0000	1.65
  +++ IntrospectionHelper.java	15 Oct 2003 15:46:20 -0000	1.65.2.1
  @@ -594,7 +594,8 @@
       private NestedCreator getNestedCreator(Project project, Object parent,
           String elementName) throws BuildException {
   
  -        NestedCreator nc = (NestedCreator) nestedCreators.get(elementName);
  +        NestedCreator nc = (NestedCreator) nestedCreators.get(
  +            elementName.toLowerCase(Locale.US));
           if (nc == null) {
               nc = createAddTypeCreator(project, parent, elementName);
           }
  @@ -696,7 +697,7 @@
        * @return true if the given nested element is supported
        */
       public boolean supportsNestedElement(String elementName) {
  -        return nestedCreators.containsKey(elementName)
  +        return nestedCreators.containsKey(elementName.toLowerCase(Locale.US))
               || DynamicConfigurator.class.isAssignableFrom(bean)
               || addTypeMethods.size() != 0;
       }
  @@ -726,7 +727,8 @@
           if (elementName == null) {
               return;
           }
  -        NestedCreator ns = (NestedCreator) nestedCreators.get(elementName);
  +        NestedCreator ns = (NestedCreator) nestedCreators.get(
  +            elementName.toLowerCase(Locale.US));
           if (ns == null) {
               return;
           }
  
  
  
  No                   revision
  No                   revision
  1.2.2.6   +0 -2      ant/docs/manual/CoreTypes/custom-programming.html
  
  Index: custom-programming.html
  ===================================================================
  RCS file: /home/cvs/ant/docs/manual/CoreTypes/custom-programming.html,v
  retrieving revision 1.2.2.5
  retrieving revision 1.2.2.6
  diff -u -r1.2.2.5 -r1.2.2.6
  --- custom-programming.html	15 Oct 2003 13:21:00 -0000	1.2.2.5
  +++ custom-programming.html	15 Oct 2003 15:46:20 -0000	1.2.2.6
  @@ -40,8 +40,6 @@
       <p>
         After the class has been written, it is added to the ant system
         by using <code>&lt;typedef&gt;</code>.
  -      One thing to be aware of is that currently this will only work
  -      if the definition name is all lower case.
       </p>
       <h3><a name="customconditions">Custom Conditions</a></h3>
       <p>
  
  
  

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


Mime
View raw message