ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dona...@apache.org
Subject cvs commit: jakarta-ant/src/main/org/apache/tools/ant UnknownElement.java
Date Sat, 15 Sep 2001 04:05:36 GMT
donaldp     01/09/14 21:05:36

  Modified:    src/main/org/apache/tools/ant UnknownElement.java
  Log:
  I noticed that when a task is created using taskdef, all messages were
  being logged against the target.
  
  Submitted by: Garrick Olson <Garrick.Olson@Aceva.com>
  
  Revision  Changes    Path
  1.10      +7 -1      jakarta-ant/src/main/org/apache/tools/ant/UnknownElement.java
  
  Index: UnknownElement.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/src/main/org/apache/tools/ant/UnknownElement.java,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- UnknownElement.java	2001/08/19 05:52:00	1.9
  +++ UnknownElement.java	2001/09/15 04:05:36	1.10
  @@ -101,7 +101,13 @@
               throw new BuildException("Could not create task of type: "
                                        + elementName, location);
           }
  -        realTask.execute();
  +
  +        try {
  +            project.fireTaskStarted(realTask);
  +            realTask.execute();
  +        } finally {
  +            project.fireTaskFinished(realTask, null);
  +        }
       }
   
       public void addChild(UnknownElement child) {
  
  
  

Mime
View raw message