donaldp 01/12/29 16:18:20
Modified: proposal/myrmidon/src/main/org/apache/tools/ant
ProjectComponent.java
Log:
Removed log() method as no classes use it anymore
Revision Changes Path
1.12 +1 -41
jakarta-ant/proposal/myrmidon/src/main/org/apache/tools/ant/ProjectComponent.java
Index: ProjectComponent.java
===================================================================
RCS file:
/home/cvs/jakarta-ant/proposal/myrmidon/src/main/org/apache/tools/ant/ProjectComponent.java,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -r1.11 -r1.12
--- ProjectComponent.java 23 Dec 2001 14:23:47 -0000 1.11
+++ ProjectComponent.java 30 Dec 2001 00:18:20 -0000 1.12
@@ -17,68 +17,28 @@
*
* @author <a href="mailto:[EMAIL PROTECTED]">Conor MacNeill</a>
*/
-
public abstract class ProjectComponent
extends AbstractTask
{
- private Project m_project;
-
public Logger hackGetLogger()
{
return super.getLogger();
}
/**
- * Sets the project object of this component. This method is used by
project
- * when a component is added to it so that the component has access to
the
- * functions of the project. It should not be used for any other purpose.
- *
- * @param project Project in whose scope this component belongs.
- */
- public void setProject( Project project )
- {
- this.m_project = project;
- }
-
- /**
* Get the Project to which this component belongs
*
* @return the components's project.
*/
public Project getProject()
{
- return m_project;
+ return null;
}
public void execute()
throws TaskException
{
//HACK: NOOP execute - should be deleted in the future!
- }
-
- public void log( final String message, int priority )
- {
- switch( priority )
- {
- case Project.MSG_ERR:
- getLogger().error( message );
- break;
- case Project.MSG_WARN:
- getLogger().warn( message );
- break;
- case Project.MSG_INFO:
- getLogger().info( message );
- break;
- case Project.MSG_VERBOSE:
- getLogger().debug( message );
- break;
- case Project.MSG_DEBUG:
- getLogger().debug( message );
- break;
-
- default:
- getLogger().debug( message );
- }
}
}
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>