Browse Source

always call fireTargetFinished to correspond to a fireTargetStarted

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@276552 13f79535-47bb-0310-9956-ffa450edef68
master
Peter Reilly 21 years ago
parent
commit
698b90a7df
1 changed files with 5 additions and 3 deletions
  1. +5
    -3
      src/main/org/apache/tools/ant/Target.java

+ 5
- 3
src/main/org/apache/tools/ant/Target.java View File

@@ -363,13 +363,15 @@ public class Target implements TaskContainer {
* @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);
}
}



Loading…
Cancel
Save