Browse Source

Removed log() method as no classes use it anymore

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270421 13f79535-47bb-0310-9956-ffa450edef68
master
Peter Donald 23 years ago
parent
commit
766f01e626
2 changed files with 2 additions and 82 deletions
  1. +1
    -41
      proposal/myrmidon/src/main/org/apache/tools/ant/ProjectComponent.java
  2. +1
    -41
      proposal/myrmidon/src/todo/org/apache/tools/ant/ProjectComponent.java

+ 1
- 41
proposal/myrmidon/src/main/org/apache/tools/ant/ProjectComponent.java View File

@@ -17,29 +17,14 @@ import org.apache.myrmidon.api.TaskException;
*
* @author <a href="mailto:conor@apache.org">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
*
@@ -47,7 +32,7 @@ public abstract class ProjectComponent
*/
public Project getProject()
{
return m_project;
return null;
}

public void execute()
@@ -55,30 +40,5 @@ public abstract class ProjectComponent
{
//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 );
}
}
}


+ 1
- 41
proposal/myrmidon/src/todo/org/apache/tools/ant/ProjectComponent.java View File

@@ -17,29 +17,14 @@ import org.apache.myrmidon.api.TaskException;
*
* @author <a href="mailto:conor@apache.org">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
*
@@ -47,7 +32,7 @@ public abstract class ProjectComponent
*/
public Project getProject()
{
return m_project;
return null;
}

public void execute()
@@ -55,30 +40,5 @@ public abstract class ProjectComponent
{
//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 );
}
}
}


Loading…
Cancel
Save