ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From peterrei...@apache.org
Subject cvs commit: ant/src/main/org/apache/tools/ant IntrospectionHelper.java
Date Tue, 06 Jan 2004 17:13:45 GMT
peterreilly    2004/01/06 09:13:45

  Modified:    src/main/org/apache/tools/ant Tag: ANT_16_BRANCH
                        IntrospectionHelper.java
  Log:
  Sync with HEAD
  
  Revision  Changes    Path
  No                   revision
  No                   revision
  1.65.2.7  +12 -0     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.2.6
  retrieving revision 1.65.2.7
  diff -u -r1.65.2.6 -r1.65.2.7
  --- IntrospectionHelper.java	30 Dec 2003 13:05:49 -0000	1.65.2.6
  +++ IntrospectionHelper.java	6 Jan 2004 17:13:45 -0000	1.65.2.7
  @@ -610,6 +610,12 @@
           String uri = ProjectHelper.extractUriFromComponentName(elementName);
           String name = ProjectHelper.extractNameFromComponentName(elementName);
   
  +        if (uri.equals(ProjectHelper.ANT_CORE_URI)) {
  +            uri = "";
  +        }
  +        if (parentUri.equals(ProjectHelper.ANT_CORE_URI)) {
  +            parentUri = "";
  +        }
           NestedCreator nc = null;
           if (uri.equals(parentUri)) { //  || uri.equals("")) {
               nc = (NestedCreator) nestedCreators.get(
  @@ -741,7 +747,13 @@
        * @return true if the given nested element is supported
        */
       public boolean supportsNestedElement(String parentUri, String elementName) {
  +        if (parentUri.equals(ProjectHelper.ANT_CORE_URI)) {
  +            parentUri = "";
  +        }
           String uri = ProjectHelper.extractUriFromComponentName(elementName);
  +        if (uri.equals(ProjectHelper.ANT_CORE_URI)) {
  +            uri = "";
  +        }
           String name = ProjectHelper.extractNameFromComponentName(elementName);
   
           return (
  
  
  

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


Mime
View raw message