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 ComponentHelper.java
Date Mon, 23 Feb 2004 09:40:13 GMT
peterreilly    2004/02/23 01:40:13

  Modified:    src/main/org/apache/tools/ant ComponentHelper.java
  Log:
  Autoload of antlib.xml from default namespace
  
  Revision  Changes    Path
  1.34      +3 -4      ant/src/main/org/apache/tools/ant/ComponentHelper.java
  
  Index: ComponentHelper.java
  ===================================================================
  RCS file: /home/cvs/ant/src/main/org/apache/tools/ant/ComponentHelper.java,v
  retrieving revision 1.33
  retrieving revision 1.34
  diff -u -r1.33 -r1.34
  --- ComponentHelper.java	9 Feb 2004 21:05:16 -0000	1.33
  +++ ComponentHelper.java	23 Feb 2004 09:40:13 -0000	1.34
  @@ -772,11 +772,10 @@
        * associated URI has been examined for antlibs.
        */
       private synchronized void checkNamespace(String componentName) {
  -        if (componentName.indexOf(':') == -1) {
  -            return; // not a namespaced name
  -        }
  -
           String uri = ProjectHelper.extractUriFromComponentName(componentName);
  +        if ("".equals(uri)) {
  +            uri = ProjectHelper.ANT_CORE_URI;
  +        }
           if (!uri.startsWith(ProjectHelper.ANTLIB_URI)) {
               return; // namespace that does not contain antlib
           }
  
  
  

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


Mime
View raw message