Browse Source

Stop tasks using project.log() and instead they can use just log()

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270216 13f79535-47bb-0310-9956-ffa450edef68
master
Peter Donald 24 years ago
parent
commit
1126a3f4ac
6 changed files with 8 additions and 8 deletions
  1. +1
    -1
      proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/Recorder.java
  2. +2
    -2
      proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/optional/dotnet/NetCommand.java
  3. +1
    -1
      proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/optional/metamata/MAuditStreamHandler.java
  4. +1
    -1
      proposal/myrmidon/src/todo/org/apache/tools/ant/taskdefs/Recorder.java
  5. +2
    -2
      proposal/myrmidon/src/todo/org/apache/tools/ant/taskdefs/optional/dotnet/NetCommand.java
  6. +1
    -1
      proposal/myrmidon/src/todo/org/apache/tools/ant/taskdefs/optional/metamata/MAuditStreamHandler.java

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

@@ -142,7 +142,7 @@ public class Recorder extends Task
if( filename == null ) if( filename == null )
throw new TaskException( "No filename specified" ); throw new TaskException( "No filename specified" );


getProject().log( "setting a recorder for name " + filename,
log( "setting a recorder for name " + filename,
Project.MSG_DEBUG ); Project.MSG_DEBUG );


// get the recorder entry // get the recorder entry


+ 2
- 2
proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/optional/dotnet/NetCommand.java View File

@@ -180,7 +180,7 @@ public class NetCommand
*/ */
protected void logError( String msg ) protected void logError( String msg )
{ {
_owner.getProject().log( msg, Project.MSG_ERR );
_owner.log( msg, Project.MSG_ERR );
} }


/** /**
@@ -190,7 +190,7 @@ public class NetCommand
*/ */
protected void logVerbose( String msg ) protected void logVerbose( String msg )
{ {
_owner.getProject().log( msg, Project.MSG_VERBOSE );
_owner.log( msg, Project.MSG_VERBOSE );
} }


/** /**


+ 1
- 1
proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/optional/metamata/MAuditStreamHandler.java View File

@@ -157,7 +157,7 @@ class MAuditStreamHandler implements ExecuteStreamHandler
String fullclassname = (String)filemapping.get( filepath ); String fullclassname = (String)filemapping.get( filepath );
if( fullclassname == null ) if( fullclassname == null )
{ {
task.getProject().log( "Could not find class mapping for " + filepath, Project.MSG_WARN );
task.log( "Could not find class mapping for " + filepath, Project.MSG_WARN );
continue; continue;
} }
int pos = fullclassname.lastIndexOf( '.' ); int pos = fullclassname.lastIndexOf( '.' );


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

@@ -142,7 +142,7 @@ public class Recorder extends Task
if( filename == null ) if( filename == null )
throw new TaskException( "No filename specified" ); throw new TaskException( "No filename specified" );


getProject().log( "setting a recorder for name " + filename,
log( "setting a recorder for name " + filename,
Project.MSG_DEBUG ); Project.MSG_DEBUG );


// get the recorder entry // get the recorder entry


+ 2
- 2
proposal/myrmidon/src/todo/org/apache/tools/ant/taskdefs/optional/dotnet/NetCommand.java View File

@@ -180,7 +180,7 @@ public class NetCommand
*/ */
protected void logError( String msg ) protected void logError( String msg )
{ {
_owner.getProject().log( msg, Project.MSG_ERR );
_owner.log( msg, Project.MSG_ERR );
} }


/** /**
@@ -190,7 +190,7 @@ public class NetCommand
*/ */
protected void logVerbose( String msg ) protected void logVerbose( String msg )
{ {
_owner.getProject().log( msg, Project.MSG_VERBOSE );
_owner.log( msg, Project.MSG_VERBOSE );
} }


/** /**


+ 1
- 1
proposal/myrmidon/src/todo/org/apache/tools/ant/taskdefs/optional/metamata/MAuditStreamHandler.java View File

@@ -157,7 +157,7 @@ class MAuditStreamHandler implements ExecuteStreamHandler
String fullclassname = (String)filemapping.get( filepath ); String fullclassname = (String)filemapping.get( filepath );
if( fullclassname == null ) if( fullclassname == null )
{ {
task.getProject().log( "Could not find class mapping for " + filepath, Project.MSG_WARN );
task.log( "Could not find class mapping for " + filepath, Project.MSG_WARN );
continue; continue;
} }
int pos = fullclassname.lastIndexOf( '.' ); int pos = fullclassname.lastIndexOf( '.' );


Loading…
Cancel
Save