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/taskdefs Antlib.java
Date Wed, 17 Sep 2003 17:06:44 GMT
peterreilly    2003/09/17 10:06:44

  Modified:    src/main/org/apache/tools/ant/taskdefs Antlib.java
  Log:
  Restrict antlib tasks to be instanceof AntLibInterface
  Deal with types later
  
  Revision  Changes    Path
  1.11      +4 -0      ant/src/main/org/apache/tools/ant/taskdefs/Antlib.java
  
  Index: Antlib.java
  ===================================================================
  RCS file: /home/cvs/ant/src/main/org/apache/tools/ant/taskdefs/Antlib.java,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- Antlib.java	12 Sep 2003 20:56:46 -0000	1.10
  +++ Antlib.java	17 Sep 2003 17:06:44 -0000	1.11
  @@ -183,6 +183,10 @@
               if (t == null) {
                   continue;
               }
  +            if (!(t instanceof AntlibInterface)) {
  +                throw new BuildException(
  +                    "Invalid element in antlib " + ue.getTag());
  +            }
               if (t instanceof AntlibInterface) {
                   AntlibInterface d = (AntlibInterface) t;
                   d.setURI(uri);
  
  
  

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


Mime
View raw message