peterreilly    2003/06/27 11:16:59

  Modified:    src/main/org/apache/tools/ant ComponentHelper.java
  Log:
  quick fix for Ant.java use of property in Ant#reinit
  
  Revision  Changes    Path
  1.14      +9 -1      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.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- ComponentHelper.java      27 Jun 2003 09:24:10 -0000      1.13
  +++ ComponentHelper.java      27 Jun 2003 18:16:59 -0000      1.14
  @@ -434,7 +434,15 @@
        */
       public Task createTask(String taskType) throws BuildException {
           Task task=createNewTask(taskType);
  -        if(task!=null) {
  +        if (task == null && taskType.equals("property")) {
  +            // quick fix for Ant.java use of property before
  +            // initializeing the project
  +            addTaskDefinition("property",
  +                              org.apache.tools.ant.taskdefs.Property.class);
  +            task = createNewTask(taskType);
  +        }
  +            
  +        if (task != null) {
               addCreatedTask(taskType, task);
           }
           return task;
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to