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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]