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 Target.java
Date Thu, 10 Jun 2004 08:15:49 GMT
peterreilly    2004/06/10 01:15:49

  Modified:    src/main/org/apache/tools/ant Tag: ANT_16_BRANCH Target.java
  Log:
  sync
  
  Revision  Changes    Path
  No                   revision
  No                   revision
  1.46.2.6  +5 -3      ant/src/main/org/apache/tools/ant/Target.java
  
  Index: Target.java
  ===================================================================
  RCS file: /home/cvs/ant/src/main/org/apache/tools/ant/Target.java,v
  retrieving revision 1.46.2.5
  retrieving revision 1.46.2.6
  diff -u -r1.46.2.5 -r1.46.2.6
  --- Target.java	15 Mar 2004 17:33:24 -0000	1.46.2.5
  +++ Target.java	10 Jun 2004 08:15:49 -0000	1.46.2.6
  @@ -323,13 +323,15 @@
        * @see #execute()
        */
       public final void performTasks() {
  +        RuntimeException thrown = null;
  +        project.fireTargetStarted(this);
           try {
  -            project.fireTargetStarted(this);
               execute();
  -            project.fireTargetFinished(this, null);
           } catch (RuntimeException exc) {
  -            project.fireTargetFinished(this, exc);
  +            thrown = exc;
               throw exc;
  +        } finally {
  +            project.fireTargetFinished(this, thrown);
           }
       }
   
  
  
  

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


Mime
View raw message