From a5ddd208a9354287978e525f81b92ff5eeab9a11 Mon Sep 17 00:00:00 2001 From: Peter Donald Date: Sun, 16 Dec 2001 05:33:57 +0000 Subject: [PATCH] It is not the task that should be worried about generating build events but the container. git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270206 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/main/org/apache/tools/ant/Task.java | 24 ------------------- .../src/todo/org/apache/tools/ant/Task.java | 24 ------------------- 2 files changed, 48 deletions(-) diff --git a/proposal/myrmidon/src/main/org/apache/tools/ant/Task.java b/proposal/myrmidon/src/main/org/apache/tools/ant/Task.java index 473cdb028..36b88cbf2 100644 --- a/proposal/myrmidon/src/main/org/apache/tools/ant/Task.java +++ b/proposal/myrmidon/src/main/org/apache/tools/ant/Task.java @@ -13,30 +13,6 @@ public abstract class Task extends ProjectComponent 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 more than once, if the task is invoked more than once. For diff --git a/proposal/myrmidon/src/todo/org/apache/tools/ant/Task.java b/proposal/myrmidon/src/todo/org/apache/tools/ant/Task.java index 473cdb028..36b88cbf2 100644 --- a/proposal/myrmidon/src/todo/org/apache/tools/ant/Task.java +++ b/proposal/myrmidon/src/todo/org/apache/tools/ant/Task.java @@ -13,30 +13,6 @@ public abstract class Task extends ProjectComponent 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 more than once, if the task is invoked more than once. For