git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270206 13f79535-47bb-0310-9956-ffa450edef68master
| @@ -13,30 +13,6 @@ public abstract class Task | |||||
| extends ProjectComponent | extends ProjectComponent | ||||
| implements org.apache.myrmidon.api.Task | implements org.apache.myrmidon.api.Task | ||||
| { | { | ||||
| /** | |||||
| * Perform this task | |||||
| */ | |||||
| public final void perform() | |||||
| throws TaskException | |||||
| { | |||||
| try | |||||
| { | |||||
| project.fireTaskStarted( this ); | |||||
| execute(); | |||||
| project.fireTaskFinished( this, null ); | |||||
| } | |||||
| catch( TaskException te ) | |||||
| { | |||||
| project.fireTaskFinished( this, te ); | |||||
| throw te; | |||||
| } | |||||
| catch( RuntimeException re ) | |||||
| { | |||||
| project.fireTaskFinished( this, re ); | |||||
| throw re; | |||||
| } | |||||
| } | |||||
| /** | /** | ||||
| * Called by the project to let the task do it's work. This method may be | * Called by the project to let the task do it's work. This method may be | ||||
| * called more than once, if the task is invoked more than once. For | * called more than once, if the task is invoked more than once. For | ||||
| @@ -13,30 +13,6 @@ public abstract class Task | |||||
| extends ProjectComponent | extends ProjectComponent | ||||
| implements org.apache.myrmidon.api.Task | implements org.apache.myrmidon.api.Task | ||||
| { | { | ||||
| /** | |||||
| * Perform this task | |||||
| */ | |||||
| public final void perform() | |||||
| throws TaskException | |||||
| { | |||||
| try | |||||
| { | |||||
| project.fireTaskStarted( this ); | |||||
| execute(); | |||||
| project.fireTaskFinished( this, null ); | |||||
| } | |||||
| catch( TaskException te ) | |||||
| { | |||||
| project.fireTaskFinished( this, te ); | |||||
| throw te; | |||||
| } | |||||
| catch( RuntimeException re ) | |||||
| { | |||||
| project.fireTaskFinished( this, re ); | |||||
| throw re; | |||||
| } | |||||
| } | |||||
| /** | /** | ||||
| * Called by the project to let the task do it's work. This method may be | * Called by the project to let the task do it's work. This method may be | ||||
| * called more than once, if the task is invoked more than once. For | * called more than once, if the task is invoked more than once. For | ||||