diff options
author | Mark Donszelmann <Mark.Donszelmann@gmail.com> | 2007-07-05 21:41:16 +0000 |
---|---|---|
committer | Mark Donszelmann <Mark.Donszelmann@gmail.com> | 2007-07-05 21:41:16 +0000 |
commit | b03f055da64b4bc24b0ccfc5a439827131016226 (patch) | |
tree | c2753cc1a2f25d6f2893ed6f7da36165ef85460a /test/junit/net/sf/antcontrib/cpptasks/MockBuildListener.java | |
parent | a2085fd18c52730d5d85027b77cb4504d06f83c5 (diff) | |
download | cpptasks-parallel-b03f055da64b4bc24b0ccfc5a439827131016226.tar.gz cpptasks-parallel-b03f055da64b4bc24b0ccfc5a439827131016226.tar.bz2 cpptasks-parallel-b03f055da64b4bc24b0ccfc5a439827131016226.tar.xz cpptasks-parallel-b03f055da64b4bc24b0ccfc5a439827131016226.zip |
Updated extra files
Diffstat (limited to 'test/junit/net/sf/antcontrib/cpptasks/MockBuildListener.java')
-rw-r--r-- | test/junit/net/sf/antcontrib/cpptasks/MockBuildListener.java | 172 |
1 files changed, 0 insertions, 172 deletions
diff --git a/test/junit/net/sf/antcontrib/cpptasks/MockBuildListener.java b/test/junit/net/sf/antcontrib/cpptasks/MockBuildListener.java deleted file mode 100644 index ffa6083..0000000 --- a/test/junit/net/sf/antcontrib/cpptasks/MockBuildListener.java +++ /dev/null @@ -1,172 +0,0 @@ -/* - * - * Copyright 2003-2004 The Ant-Contrib project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package net.sf.antcontrib.cpptasks; -import java.util.Vector; - -import org.apache.tools.ant.BuildEvent; -import org.apache.tools.ant.BuildListener; -/** - * Captures build events - * - */ -public class MockBuildListener implements BuildListener { - private Vector buildFinishedEvents = new Vector(); - private Vector buildStartedEvents = new Vector(); - private Vector messageLoggedEvents = new Vector(); - private Vector targetFinishedEvents = new Vector(); - private Vector targetStartedEvents = new Vector(); - private Vector taskFinishedEvents = new Vector(); - private Vector taskStartedEvents = new Vector(); - /** - * Signals that the last target has finished. This event will still be - * fired if an error occurred during the build. - * - * @param event - * An event with any relevant extra information. Must not be - * <code>null</code>. - * - * @see BuildEvent#getException() - */ - public void buildFinished(BuildEvent event) { - buildFinishedEvents.addElement(event); - } - /** - * Signals that a build has started. This event is fired before any targets - * have started. - * - * @param event - * An event with any relevant extra information. Must not be - * <code>null</code>. - */ - public void buildStarted(BuildEvent event) { - buildStartedEvents.addElement(event); - } - public Vector getBuildFinishedEvents() { - return new Vector(buildFinishedEvents); - } - /** - * Gets a list of buildStarted events - * - * @return list of build started events - */ - public Vector getBuildStartedEvents() { - return new Vector(buildStartedEvents); - } - /** - * Gets message logged events - * - * @return - */ - public Vector getMessageLoggedEvents() { - return new Vector(messageLoggedEvents); - } - /** - * Gets target finished events - * - * @return - */ - public Vector getTargetFinishedEvents() { - return new Vector(targetFinishedEvents); - } - /** - * Gets target started events - * - * @return - */ - public Vector getTargetStartedEvents() { - return new Vector(targetStartedEvents); - } - /** - * Gets task finished events - * - * @return - */ - public Vector getTaskFinishedEvents() { - return new Vector(taskFinishedEvents); - } - /** - * Gets task started events - * - * @return - */ - public Vector getTaskStartedEvents() { - return new Vector(taskStartedEvents); - } - /** - * Signals a message logging event. - * - * @param event - * An event with any relevant extra information. Must not be - * <code>null</code>. - * - * @see BuildEvent#getMessage() - * @see BuildEvent#getPriority() - */ - public void messageLogged(BuildEvent event) { - messageLoggedEvents.addElement(event); - } - /** - * Signals that a target has finished. This event will still be fired if an - * error occurred during the build. - * - * @param event - * An event with any relevant extra information. Must not be - * <code>null</code>. - * - * @see BuildEvent#getException() - */ - public void targetFinished(BuildEvent event) { - targetFinishedEvents.addElement(event); - } - /** - * Signals that a target is starting. - * - * @param event - * An event with any relevant extra information. Must not be - * <code>null</code>. - * - * @see BuildEvent#getTarget() - */ - public void targetStarted(BuildEvent event) { - targetStartedEvents.addElement(event); - } - /** - * Signals that a task has finished. This event will still be fired if an - * error occurred during the build. - * - * @param event - * An event with any relevant extra information. Must not be - * <code>null</code>. - * - * @see BuildEvent#getException() - */ - public void taskFinished(BuildEvent event) { - taskFinishedEvents.addElement(event); - } - /** - * Signals that a task is starting. - * - * @param event - * An event with any relevant extra information. Must not be - * <code>null</code>. - * - * @see BuildEvent#getTask() - */ - public void taskStarted(BuildEvent event) { - taskStartedEvents.addElement(event); - } -} |