You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by do...@apache.org on 2001/12/16 06:19:35 UTC
cvs commit: jakarta-ant/proposal/myrmidon/src/java/org/apache/myrmidon/listeners AbstractProjectListener.java DefaultProjectListener.java
donaldp 01/12/15 21:19:35
Modified: proposal/myrmidon/src/java/org/apache/myrmidon/listeners
DefaultProjectListener.java
Added: proposal/myrmidon/src/java/org/apache/myrmidon/listeners
AbstractProjectListener.java
Log:
Start to refactor and clean myrmidons listeners.
Revision Changes Path
1.3 +1 -22 jakarta-ant/proposal/myrmidon/src/java/org/apache/myrmidon/listeners/DefaultProjectListener.java
Index: DefaultProjectListener.java
===================================================================
RCS file: /home/cvs/jakarta-ant/proposal/myrmidon/src/java/org/apache/myrmidon/listeners/DefaultProjectListener.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- DefaultProjectListener.java 2001/11/19 12:37:29 1.2
+++ DefaultProjectListener.java 2001/12/16 05:19:35 1.3
@@ -15,25 +15,11 @@
* @author <a href="mailto:peter@apache.org">Peter Donald</a>
*/
public class DefaultProjectListener
- implements ProjectListener
+ extends AbstractProjectListener
{
private String m_prefix;
/**
- * Notify listener of projectStarted event.
- */
- public void projectStarted()
- {
- }
-
- /**
- * Notify listener of projectFinished event.
- */
- public void projectFinished()
- {
- }
-
- /**
* Notify listener of targetStarted event.
*
* @param targetName the name of target
@@ -41,13 +27,6 @@
public void targetStarted( final String targetName )
{
output( targetName + ":\n" );
- }
-
- /**
- * Notify listener of targetFinished event.
- */
- public void targetFinished()
- {
}
/**
1.1 jakarta-ant/proposal/myrmidon/src/java/org/apache/myrmidon/listeners/AbstractProjectListener.java
Index: AbstractProjectListener.java
===================================================================
/*
* Copyright (C) The Apache Software Foundation. All rights reserved.
*
* This software is published under the terms of the Apache Software License
* version 1.1, a copy of which has been included with this distribution in
* the LICENSE file.
*/
package org.apache.myrmidon.listeners;
import org.apache.avalon.framework.ExceptionUtil;
/**
* Abstract listener from which to extend.
*
* @author <a href="mailto:peter@apache.org">Peter Donald</a>
*/
public abstract class AbstractProjectListener
implements ProjectListener
{
/**
* Notify listener of projectStarted event.
*/
public void projectStarted()
{
}
/**
* Notify listener of projectFinished event.
*/
public void projectFinished()
{
}
/**
* Notify listener of targetStarted event.
*
* @param targetName the name of target
*/
public void targetStarted( final String targetName )
{
}
/**
* Notify listener of targetFinished event.
*/
public void targetFinished()
{
}
/**
* Notify listener of taskStarted event.
*
* @param taskName the name of task
*/
public void taskStarted( final String taskName )
{
}
/**
* Notify listener of taskFinished event.
*/
public void taskFinished()
{
}
/**
* Notify listener of log message event.
*
* @param message the message
*/
public void log( String message )
{
}
/**
* Notify listener of log message event.
*
* @param message the message
* @param throwable the throwable
*/
public void log( String message, Throwable throwable )
{
}
}
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>