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 UnknownElement.java
Date Tue, 22 Feb 2005 15:30:40 GMT
peterreilly    2005/02/22 07:30:40

  Modified:    src/main/org/apache/tools/ant Tag: ANT_16_BRANCH
                        UnknownElement.java
  Log:
  sync
  
  Revision  Changes    Path
  No                   revision
  No                   revision
  1.63.2.14 +5 -0      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.13
  retrieving revision 1.63.2.14
  diff -u -r1.63.2.13 -r1.63.2.14
  --- UnknownElement.java	4 Jun 2004 07:39:09 -0000	1.63.2.13
  +++ UnknownElement.java	22 Feb 2005 15:30:40 -0000	1.63.2.14
  @@ -394,6 +394,11 @@
           if (o instanceof PreSetDef.PreSetDefinition) {
               PreSetDef.PreSetDefinition def = (PreSetDef.PreSetDefinition) o;
               o = def.createObject(ue.getProject());
  +            if (o == null) {
  +                throw getNotFoundException(
  +                    "preset " + name,
  +                    def.getPreSets().getComponentName());
  +            }
               ue.applyPreSet(def.getPreSets());
               if (o instanceof Task) {
                   Task task = (Task) o;
  
  
  

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


Mime
View raw message