Browse Source

log() --> getLogger().info()

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270208 13f79535-47bb-0310-9956-ffa450edef68
remotes/1764465445852377127/tmp_9b60f270d444982f535698f603f3f1e4a3704b36
Peter Donald 24 years ago
parent
commit
46a5edcc59
94 changed files with 198 additions and 238 deletions
  1. +1
    -11
      proposal/myrmidon/src/main/org/apache/tools/ant/ProjectComponent.java
  2. +0
    -10
      proposal/myrmidon/src/main/org/apache/tools/ant/Task.java
  3. +1
    -1
      proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/BUnzip2.java
  4. +2
    -2
      proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/Checksum.java
  5. +3
    -3
      proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/Copy.java
  6. +6
    -6
      proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/Delete.java
  7. +1
    -1
      proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/GUnzip.java
  8. +1
    -1
      proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/GenerateKey.java
  9. +8
    -8
      proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/Get.java
  10. +1
    -1
      proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/Javac.java
  11. +1
    -1
      proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/Mkdir.java
  12. +2
    -2
      proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/Move.java
  13. +1
    -1
      proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/Pack.java
  14. +1
    -1
      proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/SQLExec.java
  15. +1
    -1
      proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/SendEmail.java
  16. +1
    -1
      proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/SignJar.java
  17. +1
    -1
      proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/XSLTProcess.java
  18. +1
    -1
      proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/Zip.java
  19. +1
    -1
      proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/optional/Cab.java
  20. +12
    -12
      proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/optional/IContract.java
  21. +1
    -1
      proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/optional/Javah.java
  22. +2
    -2
      proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/optional/ManifestFile.java
  23. +1
    -1
      proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/optional/Native2Ascii.java
  24. +2
    -2
      proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/optional/NetRexxC.java
  25. +2
    -2
      proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/optional/PropertyFile.java
  26. +1
    -1
      proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/optional/Rpm.java
  27. +1
    -1
      proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/optional/XMLValidateTask.java
  28. +1
    -1
      proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/optional/depend/Depend.java
  29. +1
    -1
      proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/optional/dotnet/CSharp.java
  30. +1
    -1
      proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/optional/dotnet/Ilasm.java
  31. +1
    -1
      proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/optional/dotnet/NetCommand.java
  32. +4
    -4
      proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/optional/ejb/BorlandGenerateClient.java
  33. +1
    -1
      proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/optional/javacc/JJTree.java
  34. +5
    -5
      proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/optional/jdepend/JDependTask.java
  35. +1
    -1
      proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/optional/jlink/JlinkTask.java
  36. +1
    -1
      proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/optional/jsp/JspC.java
  37. +1
    -1
      proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/optional/jsp/WLJspc.java
  38. +1
    -1
      proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/optional/junit/AggregateTransformer.java
  39. +1
    -1
      proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/optional/junit/XalanExecutor.java
  40. +2
    -2
      proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/optional/metamata/MParse.java
  41. +10
    -10
      proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/optional/net/FTP.java
  42. +1
    -1
      proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/optional/net/MimeMail.java
  43. +7
    -7
      proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/optional/scm/AntStarTeamCheckOut.java
  44. +1
    -1
      proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/optional/sitraka/CovReport.java
  45. +1
    -1
      proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/optional/vss/MSVSSCHECKIN.java
  46. +1
    -1
      proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/optional/vss/MSVSSCHECKOUT.java
  47. +1
    -1
      proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/optional/vss/MSVSSGET.java
  48. +1
    -11
      proposal/myrmidon/src/todo/org/apache/tools/ant/ProjectComponent.java
  49. +0
    -10
      proposal/myrmidon/src/todo/org/apache/tools/ant/Task.java
  50. +1
    -1
      proposal/myrmidon/src/todo/org/apache/tools/ant/taskdefs/BUnzip2.java
  51. +2
    -2
      proposal/myrmidon/src/todo/org/apache/tools/ant/taskdefs/Checksum.java
  52. +3
    -3
      proposal/myrmidon/src/todo/org/apache/tools/ant/taskdefs/Copy.java
  53. +6
    -6
      proposal/myrmidon/src/todo/org/apache/tools/ant/taskdefs/Delete.java
  54. +1
    -1
      proposal/myrmidon/src/todo/org/apache/tools/ant/taskdefs/GUnzip.java
  55. +1
    -1
      proposal/myrmidon/src/todo/org/apache/tools/ant/taskdefs/GenerateKey.java
  56. +8
    -8
      proposal/myrmidon/src/todo/org/apache/tools/ant/taskdefs/Get.java
  57. +1
    -1
      proposal/myrmidon/src/todo/org/apache/tools/ant/taskdefs/Javac.java
  58. +1
    -1
      proposal/myrmidon/src/todo/org/apache/tools/ant/taskdefs/Mkdir.java
  59. +2
    -2
      proposal/myrmidon/src/todo/org/apache/tools/ant/taskdefs/Move.java
  60. +1
    -1
      proposal/myrmidon/src/todo/org/apache/tools/ant/taskdefs/Pack.java
  61. +1
    -1
      proposal/myrmidon/src/todo/org/apache/tools/ant/taskdefs/SQLExec.java
  62. +1
    -1
      proposal/myrmidon/src/todo/org/apache/tools/ant/taskdefs/SendEmail.java
  63. +1
    -1
      proposal/myrmidon/src/todo/org/apache/tools/ant/taskdefs/SignJar.java
  64. +1
    -1
      proposal/myrmidon/src/todo/org/apache/tools/ant/taskdefs/XSLTProcess.java
  65. +1
    -1
      proposal/myrmidon/src/todo/org/apache/tools/ant/taskdefs/Zip.java
  66. +1
    -1
      proposal/myrmidon/src/todo/org/apache/tools/ant/taskdefs/optional/Cab.java
  67. +12
    -12
      proposal/myrmidon/src/todo/org/apache/tools/ant/taskdefs/optional/IContract.java
  68. +1
    -1
      proposal/myrmidon/src/todo/org/apache/tools/ant/taskdefs/optional/Javah.java
  69. +2
    -2
      proposal/myrmidon/src/todo/org/apache/tools/ant/taskdefs/optional/ManifestFile.java
  70. +1
    -1
      proposal/myrmidon/src/todo/org/apache/tools/ant/taskdefs/optional/Native2Ascii.java
  71. +2
    -2
      proposal/myrmidon/src/todo/org/apache/tools/ant/taskdefs/optional/NetRexxC.java
  72. +2
    -2
      proposal/myrmidon/src/todo/org/apache/tools/ant/taskdefs/optional/PropertyFile.java
  73. +1
    -1
      proposal/myrmidon/src/todo/org/apache/tools/ant/taskdefs/optional/Rpm.java
  74. +1
    -1
      proposal/myrmidon/src/todo/org/apache/tools/ant/taskdefs/optional/XMLValidateTask.java
  75. +1
    -1
      proposal/myrmidon/src/todo/org/apache/tools/ant/taskdefs/optional/depend/Depend.java
  76. +1
    -1
      proposal/myrmidon/src/todo/org/apache/tools/ant/taskdefs/optional/dotnet/CSharp.java
  77. +1
    -1
      proposal/myrmidon/src/todo/org/apache/tools/ant/taskdefs/optional/dotnet/Ilasm.java
  78. +1
    -1
      proposal/myrmidon/src/todo/org/apache/tools/ant/taskdefs/optional/dotnet/NetCommand.java
  79. +4
    -4
      proposal/myrmidon/src/todo/org/apache/tools/ant/taskdefs/optional/ejb/BorlandGenerateClient.java
  80. +1
    -1
      proposal/myrmidon/src/todo/org/apache/tools/ant/taskdefs/optional/javacc/JJTree.java
  81. +5
    -5
      proposal/myrmidon/src/todo/org/apache/tools/ant/taskdefs/optional/jdepend/JDependTask.java
  82. +1
    -1
      proposal/myrmidon/src/todo/org/apache/tools/ant/taskdefs/optional/jlink/JlinkTask.java
  83. +1
    -1
      proposal/myrmidon/src/todo/org/apache/tools/ant/taskdefs/optional/jsp/JspC.java
  84. +1
    -1
      proposal/myrmidon/src/todo/org/apache/tools/ant/taskdefs/optional/jsp/WLJspc.java
  85. +1
    -1
      proposal/myrmidon/src/todo/org/apache/tools/ant/taskdefs/optional/junit/AggregateTransformer.java
  86. +1
    -1
      proposal/myrmidon/src/todo/org/apache/tools/ant/taskdefs/optional/junit/XalanExecutor.java
  87. +2
    -2
      proposal/myrmidon/src/todo/org/apache/tools/ant/taskdefs/optional/metamata/MParse.java
  88. +10
    -10
      proposal/myrmidon/src/todo/org/apache/tools/ant/taskdefs/optional/net/FTP.java
  89. +1
    -1
      proposal/myrmidon/src/todo/org/apache/tools/ant/taskdefs/optional/net/MimeMail.java
  90. +7
    -7
      proposal/myrmidon/src/todo/org/apache/tools/ant/taskdefs/optional/scm/AntStarTeamCheckOut.java
  91. +1
    -1
      proposal/myrmidon/src/todo/org/apache/tools/ant/taskdefs/optional/sitraka/CovReport.java
  92. +1
    -1
      proposal/myrmidon/src/todo/org/apache/tools/ant/taskdefs/optional/vss/MSVSSCHECKIN.java
  93. +1
    -1
      proposal/myrmidon/src/todo/org/apache/tools/ant/taskdefs/optional/vss/MSVSSCHECKOUT.java
  94. +1
    -1
      proposal/myrmidon/src/todo/org/apache/tools/ant/taskdefs/optional/vss/MSVSSGET.java

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

@@ -22,7 +22,7 @@ import org.apache.tools.ant.util.FileUtils;
public abstract class ProjectComponent
extends AbstractTask
{
protected Project project = null;
protected Project project;

/**
* Sets the project object of this component. This method is used by project
@@ -58,16 +58,6 @@ public abstract class ProjectComponent
return FileUtils.newFileUtils().resolveFile( project.getBaseDir(), name );
}

/**
* Log a message with the default (INFO) priority.
*
* @param msg Description of Parameter
*/
public void log( String msg )
{
log( msg, Project.MSG_INFO );
}

/**
* Log a mesage with the give priority.
*


+ 0
- 10
proposal/myrmidon/src/main/org/apache/tools/ant/Task.java View File

@@ -36,16 +36,6 @@ public abstract class Task
{
}

/**
* Log a message with the default (INFO) priority.
*
* @param msg Description of Parameter
*/
public void log( String msg )
{
log( msg, Project.MSG_INFO );
}

/**
* Log a mesage with the give priority.
*


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

@@ -36,7 +36,7 @@ public class BUnzip2 extends Unpack
{
if( source.lastModified() > dest.lastModified() )
{
log( "Expanding " + source.getAbsolutePath() + " to "
getLogger().info( "Expanding " + source.getAbsolutePath() + " to "
+ dest.getAbsolutePath() );

FileOutputStream out = null;


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

@@ -230,7 +230,7 @@ public class Checksum extends MatchingTask implements Condition
String message = "Could not find file "
+ file.getAbsolutePath()
+ " to generate checksum for.";
log( message );
getLogger().info( message );
throw new TaskException( message );
}
}
@@ -256,7 +256,7 @@ public class Checksum extends MatchingTask implements Condition
File src = (File)e.nextElement();
if( !isCondition )
{
log( "Calculating " + algorithm + " checksum for " + src );
getLogger().info( "Calculating " + algorithm + " checksum for " + src );
}
fis = new FileInputStream( src );
DigestInputStream dis = new DigestInputStream( fis,


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

@@ -243,7 +243,7 @@ public class Copy extends Task
{
String message = "Could not find file "
+ file.getAbsolutePath() + " to copy.";
log( message );
getLogger().info( message );
throw new TaskException( message );
}
}
@@ -334,7 +334,7 @@ public class Copy extends Task
{
if( fileCopyMap.size() > 0 )
{
log( "Copying " + fileCopyMap.size() +
getLogger().info( "Copying " + fileCopyMap.size() +
" file" + ( fileCopyMap.size() == 1 ? "" : "s" ) +
" to " + destDir.getAbsolutePath() );

@@ -397,7 +397,7 @@ public class Copy extends Task

if( count > 0 )
{
log( "Copied " + count +
getLogger().info( "Copied " + count +
" empty director" +
( count == 1 ? "y" : "ies" ) +
" to " + destDir.getAbsolutePath() );


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

@@ -239,7 +239,7 @@ public class Delete extends MatchingTask
{
if( usedMatchingTask )
{
log( "DEPRECATED - Use of the implicit FileSet is deprecated. Use a nested fileset element instead." );
getLogger().info( "DEPRECATED - Use of the implicit FileSet is deprecated. Use a nested fileset element instead." );
}

if( file == null && dir == null && filesets.size() == 0 )
@@ -259,11 +259,11 @@ public class Delete extends MatchingTask
{
if( file.isDirectory() )
{
log( "Directory " + file.getAbsolutePath() + " cannot be removed using the file attribute. Use dir instead." );
getLogger().info( "Directory " + file.getAbsolutePath() + " cannot be removed using the file attribute. Use dir instead." );
}
else
{
log( "Deleting: " + file.getAbsolutePath() );
getLogger().info( "Deleting: " + file.getAbsolutePath() );

if( !file.delete() )
{
@@ -294,7 +294,7 @@ public class Delete extends MatchingTask
*/
if( verbosity == Project.MSG_VERBOSE )
{
log( "Deleting directory " + dir.getAbsolutePath() );
getLogger().info( "Deleting directory " + dir.getAbsolutePath() );
}
removeDir( dir );
}
@@ -408,7 +408,7 @@ public class Delete extends MatchingTask
{
if( files.length > 0 )
{
log( "Deleting " + files.length + " files from " + d.getAbsolutePath() );
getLogger().info( "Deleting " + files.length + " files from " + d.getAbsolutePath() );
for( int j = 0; j < files.length; j++ )
{
File f = new File( d, files[ j ] );
@@ -454,7 +454,7 @@ public class Delete extends MatchingTask

if( dirCount > 0 )
{
log( "Deleted " + dirCount + " director" +
getLogger().info( "Deleted " + dirCount + " director" +
( dirCount == 1 ? "y" : "ies" ) +
" from " + d.getAbsolutePath() );
}


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

@@ -36,7 +36,7 @@ public class GUnzip extends Unpack
{
if( source.lastModified() > dest.lastModified() )
{
log( "Expanding " + source.getAbsolutePath() + " to "
getLogger().info( "Expanding " + source.getAbsolutePath() + " to "
+ dest.getAbsolutePath() );

FileOutputStream out = null;


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

@@ -160,7 +160,7 @@ public class GenerateKey
throw new TaskException( "dname must be set" );
}

log( "Generating Key for " + alias );
getLogger().info( "Generating Key for " + alias );
final ExecTask cmd = (ExecTask)project.createTask( "exec" );
cmd.setExecutable( "keytool" );



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

@@ -151,7 +151,7 @@ public class Get extends Task

try
{
log( "Getting: " + source );
getLogger().info( "Getting: " + source );

//set the timestamp to the file date.
long timestamp = 0;
@@ -163,7 +163,7 @@ public class Get extends Task
if( verbose )
{
Date t = new Date( timestamp );
log( "local file date : " + t.toString() );
getLogger().info( "local file date : " + t.toString() );
}

hasTimestamp = true;
@@ -209,13 +209,13 @@ public class Get extends Task
//not modified so no file download. just return instead
//and trace out something so the user doesn't think that the
//download happened when it didnt
log( "Not modified - so not downloaded" );
getLogger().info( "Not modified - so not downloaded" );
return;
}
// test for 401 result (HTTP only)
if( httpConnection.getResponseCode() == HttpURLConnection.HTTP_UNAUTHORIZED )
{
log( "Not authorized - check " + dest + " for details" );
getLogger().info( "Not authorized - check " + dest + " for details" );
return;
}

@@ -237,12 +237,12 @@ public class Get extends Task
}
catch( IOException ex )
{
log( "Error opening connection " + ex );
getLogger().info( "Error opening connection " + ex );
}
}
if( is == null )
{
log( "Can't get " + source + " to " + dest );
getLogger().info( "Can't get " + source + " to " + dest );
if( ignoreErrors )
return;
throw new TaskException( "Can't get " + source + " to " + dest );
@@ -270,7 +270,7 @@ public class Get extends Task
if( verbose )
{
Date t = new Date( remoteTimestamp );
log( "last modified = " + t.toString()
getLogger().info( "last modified = " + t.toString()
+ ( ( remoteTimestamp == 0 ) ? " - using current time instead" : "" ) );
}
if( remoteTimestamp != 0 )
@@ -279,7 +279,7 @@ public class Get extends Task
}
catch( IOException ioe )
{
log( "Error getting " + source + " to " + dest );
getLogger().info( "Error getting " + source + " to " + dest );
if( ignoreErrors )
return;
throw new TaskException( "Error", ioe );


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

@@ -774,7 +774,7 @@ public class Javac extends MatchingTask

CompilerAdapter adapter = CompilerAdapterFactory.getCompiler(
compiler, this );
log( "Compiling " + compileList.length +
getLogger().info( "Compiling " + compileList.length +
" source file"
+ ( compileList.length == 1 ? "" : "s" )
+ ( destDir != null ? " to " + destDir : "" ) );


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

@@ -49,7 +49,7 @@ public class Mkdir extends Task
"successful for an unknown reason";
throw new TaskException( msg );
}
log( "Created dir: " + dir.getAbsolutePath() );
getLogger().info( "Created dir: " + dir.getAbsolutePath() );
}
}
}

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

@@ -105,7 +105,7 @@ public class Move extends Copy
}
if( fileCopyMap.size() > 0 )
{// files to move
log( "Moving " + fileCopyMap.size() + " files to " +
getLogger().info( "Moving " + fileCopyMap.size() + " files to " +
destDir.getAbsolutePath() );

Enumeration e = fileCopyMap.keys();
@@ -200,7 +200,7 @@ public class Move extends Copy

if( count > 0 )
{
log( "Moved " + count + " empty directories to " + destDir.getAbsolutePath() );
getLogger().info( "Moved " + count + " empty directories to " + destDir.getAbsolutePath() );
}
}



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

@@ -41,7 +41,7 @@ public abstract class Pack extends Task
throws TaskException
{
validate();
log( "Building: " + zipFile.getAbsolutePath() );
getLogger().info( "Building: " + zipFile.getAbsolutePath() );
pack();
}



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

@@ -579,7 +579,7 @@ public class SQLExec extends Task
}
}

log( goodSql + " of " + totalSql +
getLogger().info( goodSql + " of " + totalSql +
" SQL statements executed successfully" );
}



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

@@ -390,7 +390,7 @@ public class SendEmail extends Task
throw new TaskException( "Attribute \"file\" or \"message\" is required." );
}

log( "Sending email" );
getLogger().info( "Sending email" );
mailMessage.sendAndClose();
}
catch( IOException ioe )


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

@@ -326,7 +326,7 @@ public class SignJar extends Task

cmd.createArg().setValue( alias );

log( "Signing Jar : " + jarSource.getAbsolutePath() );
getLogger().info( "Signing Jar : " + jarSource.getAbsolutePath() );
cmd.setFailonerror( true );
cmd.execute();
}


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

@@ -445,7 +445,7 @@ public class XSLTProcess extends MatchingTask implements XSLTLogger
styleSheetLastModified > outFile.lastModified() )
{
ensureDirectoryFor( outFile );
log( "Processing " + inFile + " to " + outFile );
getLogger().info( "Processing " + inFile + " to " + outFile );

configureLiaison( stylesheet );
liaison.transform( inFile, outFile );


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

@@ -276,7 +276,7 @@ public class Zip extends MatchingTask

String action = doUpdate ? "Updating " : "Building ";

log( action + archiveType + ": " + zipFile.getAbsolutePath() );
getLogger().info( action + archiveType + ": " + zipFile.getAbsolutePath() );

boolean success = false;
try


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

@@ -117,7 +117,7 @@ public class Cab extends MatchingTask
if( isUpToDate( files ) )
return;

log( "Building " + archiveType + ": " + cabFile.getAbsolutePath() );
getLogger().info( "Building " + archiveType + ": " + cabFile.getAbsolutePath() );

if( !Os.isFamily( "windows" ) )
{


+ 12
- 12
proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/optional/IContract.java View File

@@ -527,7 +527,7 @@ public class IContract extends MatchingTask
{
if( !controlFile.exists() )
{
log( "WARNING: Control file " + controlFile.getAbsolutePath() + " doesn't exist. iContract will be run without control file." );
getLogger().info( "WARNING: Control file " + controlFile.getAbsolutePath() + " doesn't exist. iContract will be run without control file." );
}
this.controlFile = controlFile;
}
@@ -710,7 +710,7 @@ public class IContract extends MatchingTask
// issue warning if pre,post or invariant is used together with controlfile
if( ( pre || post || invariant ) && controlFile != null )
{
log( "WARNING: specifying pre,post or invariant will override control file settings" );
getLogger().info( "WARNING: specifying pre,post or invariant will override control file settings" );
}


@@ -796,7 +796,7 @@ public class IContract extends MatchingTask
}
catch( IOException e )
{
log( "File icontrol.properties not found. That's ok. Writing a default one." );
getLogger().info( "File icontrol.properties not found. That's ok. Writing a default one." );
}
iControlProps.setProperty( "sourceRoot", srcDir.getAbsolutePath() );
iControlProps.setProperty( "classRoot", classDir.getAbsolutePath() );
@@ -807,11 +807,11 @@ public class IContract extends MatchingTask
try
{// to read existing propertiesfile
iControlProps.store( new FileOutputStream( "icontrol.properties" ), ICONTROL_PROPERTIES_HEADER );
log( "Updated icontrol.properties" );
getLogger().info( "Updated icontrol.properties" );
}
catch( IOException e )
{
log( "Couldn't write icontrol.properties." );
getLogger().info( "Couldn't write icontrol.properties." );
}
}

@@ -821,9 +821,9 @@ public class IContract extends MatchingTask
{
if( iContractMissing )
{
log( "iContract can't be found on your classpath. Your classpath is:" );
log( classpath.toString() );
log( "If you don't have the iContract jar, go get it at http://www.reliable-systems.com/tools/" );
getLogger().info( "iContract can't be found on your classpath. Your classpath is:" );
getLogger().info( classpath.toString() );
getLogger().info( "If you don't have the iContract jar, go get it at http://www.reliable-systems.com/tools/" );
}
throw new TaskException( "iContract instrumentation failed. Code=" + result );
}
@@ -948,17 +948,17 @@ public class IContract extends MatchingTask
if( targets == null )
{
targets = new File( "targets" );
log( "Warning: targets file not specified. generating file: " + targets.getName() );
getLogger().info( "Warning: targets file not specified. generating file: " + targets.getName() );
writeTargets = true;
}
else if( !targets.exists() )
{
log( "Specified targets file doesn't exist. generating file: " + targets.getName() );
getLogger().info( "Specified targets file doesn't exist. generating file: " + targets.getName() );
writeTargets = true;
}
if( writeTargets )
{
log( "You should consider using iControl to create a target file." );
getLogger().info( "You should consider using iControl to create a target file." );
targetOutputStream = new FileOutputStream( targets );
targetPrinter = new PrintStream( targetOutputStream );
}
@@ -1018,7 +1018,7 @@ public class IContract extends MatchingTask
{
if( !dirty )
{
log( "Control file " + controlFile.getAbsolutePath() + " has been updated. Instrumenting all files..." );
getLogger().info( "Control file " + controlFile.getAbsolutePath() + " has been updated. Instrumenting all files..." );
}
dirty = true;
instrumentall = true;


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

@@ -459,7 +459,7 @@ public class Javah extends Task
public void setName( String name )
{
this.name = name;
log( "ClassArgument.name=" + name );
getLogger().info( "ClassArgument.name=" + name );
}

public String getName()


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

@@ -186,7 +186,7 @@ public class ManifestFile extends Task

if( manifestFile.exists() )
{
this.log( "update existing manifest file " + manifestFile.getAbsolutePath() );
getLogger().info( "update existing manifest file " + manifestFile.getAbsolutePath() );

if( container != null )
{
@@ -234,7 +234,7 @@ public class ManifestFile extends Task
try
{
manifestFile.delete();
log( "Replacing or creating new manifest file " + manifestFile.getAbsolutePath() );
getLogger().info( "Replacing or creating new manifest file " + manifestFile.getAbsolutePath() );
if( manifestFile.createNewFile() )
{
FileOutputStream fos = new FileOutputStream( manifestFile );


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

@@ -163,7 +163,7 @@ public class Native2Ascii extends MatchingTask
}
String message = "Converting " + count + " file"
+ ( count != 1 ? "s" : "" ) + " from ";
log( message + srcDir + " to " + destDir );
getLogger().info( message + srcDir + " to " + destDir );
for( int i = 0; i < files.length; i++ )
{
convert( files[ i ], m.mapFileName( files[ i ] )[ 0 ] );


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

@@ -500,7 +500,7 @@ public class NetRexxC extends MatchingTask
// compile the source files
if( compileList.size() > 0 )
{
log( "Compiling " + compileList.size() + " source file"
getLogger().info( "Compiling " + compileList.size() + " source file"
+ ( compileList.size() == 1 ? "" : "s" )
+ " to " + destDir );
doNetRexxCompile();
@@ -610,7 +610,7 @@ public class NetRexxC extends MatchingTask
{
if( filecopyList.size() > 0 )
{
log( "Copying " + filecopyList.size() + " file"
getLogger().info( "Copying " + filecopyList.size() + " file"
+ ( filecopyList.size() == 1 ? "" : "s" )
+ " to " + destDir.getAbsolutePath() );
Enumeration enum = filecopyList.keys();


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

@@ -228,7 +228,7 @@ public class PropertyFile extends Task
{
if( m_propertyfile.exists() )
{
log( "Updating property file: " + m_propertyfile.getAbsolutePath() );
getLogger().info( "Updating property file: " + m_propertyfile.getAbsolutePath() );
FileInputStream fis = null;
try
{
@@ -246,7 +246,7 @@ public class PropertyFile extends Task
}
else
{
log( "Creating new property file: " +
getLogger().info( "Creating new property file: " +
m_propertyfile.getAbsolutePath() );
FileOutputStream out = null;
try


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

@@ -198,7 +198,7 @@ public class Rpm extends Task
try
{
exe.execute();
log( "Building the RPM based on the " + specFile + " file" );
getLogger().info( "Building the RPM based on the " + specFile + " file" );
}
catch( IOException e )
{


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

@@ -270,7 +270,7 @@ public class XMLValidateTask extends Task
fileProcessed++;
}
}
log( fileProcessed + " file(s) have been successfully validated." );
getLogger().info( fileProcessed + " file(s) have been successfully validated." );
}

protected EntityResolver getEntityResolver()


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

@@ -308,7 +308,7 @@ public class Depend extends MatchingTask
int count = deleteAllAffectedFiles();

long duration = ( System.currentTimeMillis() - start ) / 1000;
log( "Deleted " + count + " out of date files in " + duration + " seconds" );
getLogger().info( "Deleted " + count + " out of date files in " + duration + " seconds" );
}
catch( Exception e )
{


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

@@ -682,7 +682,7 @@ public class CSharp
//get dependencies list.
DirectoryScanner scanner = super.getDirectoryScanner( _srcDir );
String[] dependencies = scanner.getIncludedFiles();
log( "compiling " + dependencies.length + " file" + ( ( dependencies.length == 1 ) ? "" : "s" ) );
getLogger().info( "compiling " + dependencies.length + " file" + ( ( dependencies.length == 1 ) ? "" : "s" ) );
String baseDir = scanner.getBasedir().toString();
//add to the command
for( int i = 0; i < dependencies.length; i++ )


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

@@ -312,7 +312,7 @@ public class Ilasm
//get dependencies list.
DirectoryScanner scanner = super.getDirectoryScanner( _srcDir );
String[] dependencies = scanner.getIncludedFiles();
log( "assembling " + dependencies.length + " file" + ( ( dependencies.length == 1 ) ? "" : "s" ) );
getLogger().info( "assembling " + dependencies.length + " file" + ( ( dependencies.length == 1 ) ? "" : "s" ) );
String baseDir = scanner.getBasedir().toString();
//add to the command
for( int i = 0; i < dependencies.length; i++ )


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

@@ -146,7 +146,7 @@ public class NetCommand
{
if( _traceCommandLine )
{
_owner.log( _commandLine.toString() );
//_owner.getLogger().info( _commandLine.toString() );
}
else
{


+ 4
- 4
proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/optional/ejb/BorlandGenerateClient.java View File

@@ -132,11 +132,11 @@ public class BorlandGenerateClient extends Task

if( mode == null )
{
log( "mode is null default mode is java" );
getLogger().info( "mode is null default mode is java" );
setMode( JAVA_MODE );
}// end of if ()

log( "client jar file is " + clientjarfile );
getLogger().info( "client jar file is " + clientjarfile );

if( mode.equalsIgnoreCase( FORK_MODE ) )
{
@@ -158,7 +158,7 @@ public class BorlandGenerateClient extends Task
{
try
{
log( "mode : fork" );
getLogger().info( "mode : fork" );

org.apache.tools.ant.taskdefs.ExecTask execTask = null;
execTask = (ExecTask)getProject().createTask( "exec" );
@@ -203,7 +203,7 @@ public class BorlandGenerateClient extends Task
{
try
{
log( "mode : java" );
getLogger().info( "mode : java" );

org.apache.tools.ant.taskdefs.Java execTask = null;
execTask = (Java)getProject().createTask( "java" );


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

@@ -166,7 +166,7 @@ public class JJTree extends Task
targetName.substring( 0, targetName.indexOf( ".jjt" ) ) + ".jj" );
if( javaFile.exists() && target.lastModified() < javaFile.lastModified() )
{
log( "Target is already built - skipping (" + target + ")" );
getLogger().info( "Target is already built - skipping (" + target + ")" );
return;
}
cmdl.createArgument().setValue( target.getAbsolutePath() );


+ 5
- 5
proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/optional/jdepend/JDependTask.java View File

@@ -344,7 +344,7 @@ public class JDependTask extends Task
}

if( getOutputFile() != null )
log( "Output to be stored in " + getOutputFile().getPath() );
getLogger().info( "Output to be stored in " + getOutputFile().getPath() );
log( "Executing: " + commandline.toString(), Project.MSG_VERBOSE );
try
{
@@ -389,11 +389,11 @@ public class JDependTask extends Task
catch( IOException e )
{
String msg = "JDepend Failed when creating the output file: " + e.getMessage();
log( msg );
getLogger().info( msg );
throw new TaskException( msg );
}
jdepend.setWriter( new PrintWriter( fw ) );
log( "Output to be stored in " + getOutputFile().getPath() );
getLogger().info( "Output to be stored in " + getOutputFile().getPath() );
}

PathTokenizer sourcesPath = new PathTokenizer( getSourcespath().toString() );
@@ -405,7 +405,7 @@ public class JDependTask extends Task
if( !f.exists() || !f.isDirectory() )
{
String msg = "\"" + f.getPath() + "\" does not represent a valid directory. JDepend would fail.";
log( msg );
getLogger().info( msg );
throw new TaskException( msg );
}
try
@@ -415,7 +415,7 @@ public class JDependTask extends Task
catch( IOException e )
{
String msg = "JDepend Failed when adding a source directory: " + e.getMessage();
log( msg );
getLogger().info( msg );
throw new TaskException( msg );
}
}


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

@@ -157,7 +157,7 @@ public class JlinkTask extends MatchingTask
{
throw new TaskException( "addfiles or mergefiles required! Please set." );
}
log( "linking: " + outfile.getPath() );
getLogger().info( "linking: " + outfile.getPath() );
log( "compression: " + compress, Project.MSG_VERBOSE );
jlink linker = new jlink();
linker.setOutfile( outfile.getPath() );


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

@@ -388,7 +388,7 @@ public class JspC extends MatchingTask

CompilerAdapter adapter =
CompilerAdapterFactory.getCompiler( compiler, this );
log( "Compiling " + compileList.size() +
getLogger().info( "Compiling " + compileList.size() +
" source file"
+ ( compileList.size() == 1 ? "" : "s" )
+ ( destDir != null ? " to " + destDir : "" ) );


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

@@ -197,7 +197,7 @@ public class WLJspc extends MatchingTask
args[ j++ ] = compileClasspath.toString();

this.scanDir( files );
log( "Compiling " + filesToDo.size() + " JSP files" );
getLogger().info( "Compiling " + filesToDo.size() + " JSP files" );

for( int i = 0; i < filesToDo.size(); i++ )
{


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

@@ -134,7 +134,7 @@ public class AggregateTransformer
throw new TaskException( "Errors while applying transformations", e );
}
final long dt = System.currentTimeMillis() - t0;
task.log( "Transform time: " + dt + "ms" );
//task.getLogger().info( "Transform time: " + dt + "ms" );
}

/**


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

@@ -62,7 +62,7 @@ abstract class XalanExecutor
}
}
String version = getXalanVersion( procVersion );
caller.task.log( "Using Xalan version: " + version );
//caller.task.getLogger().info( "Using Xalan version: " + version );
executor.setCaller( caller );
return executor;
}


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

@@ -301,7 +301,7 @@ public class MParse extends Task
File javaFile = new File( pathname );
if( javaFile.exists() && target.lastModified() < javaFile.lastModified() )
{
log( "Target is already build - skipping (" + target + ")" );
getLogger().info( "Target is already build - skipping (" + target + ")" );
return;
}

@@ -372,7 +372,7 @@ public class MParse extends Task
final File sunjj = new File( target.getParent(), name );
if( sunjj.exists() )
{
log( "Removing stale file: " + sunjj.getName() );
getLogger().info( "Removing stale file: " + sunjj.getName() );
sunjj.delete();
}
}


+ 10
- 10
proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/optional/net/FTP.java View File

@@ -352,7 +352,7 @@ public class FTP
ftp.getReplyString() );
}
}
log( ACTION_STRS[ action ] + " files" );
getLogger().info( ACTION_STRS[ action ] + " files" );
transferFiles( ftp );
}

@@ -405,7 +405,7 @@ public class FTP

if( verbose )
{
log( "transferring " + filename + " to " + file.getAbsolutePath() );
getLogger().info( "transferring " + filename + " to " + file.getAbsolutePath() );
}

File pdir = new File( file.getParent() );// stay 1.1 compatible
@@ -595,7 +595,7 @@ public class FTP
{
if( verbose )
{
log( "deleting " + filename );
getLogger().info( "deleting " + filename );
}

if( !ftp.deleteFile( resolveFile( filename ) ) )
@@ -636,7 +636,7 @@ public class FTP
{
if( verbose )
{
log( "listing " + filename );
getLogger().info( "listing " + filename );
}

FTPFile ftpfile = ftp.listFiles( resolveFile( filename ) )[ 0 ];
@@ -659,7 +659,7 @@ public class FTP
{
if( verbose )
{
log( "creating directory: " + dir );
getLogger().info( "creating directory: " + dir );
}

if( !ftp.makeDirectory( dir ) )
@@ -677,14 +677,14 @@ public class FTP

if( verbose )
{
log( "directory already exists" );
getLogger().info( "directory already exists" );
}
}
else
{
if( verbose )
{
log( "directory created OK" );
getLogger().info( "directory created OK" );
}
}
}
@@ -733,7 +733,7 @@ public class FTP

if( verbose )
{
log( "transferring " + file.getAbsolutePath() );
getLogger().info( "transferring " + file.getAbsolutePath() );
}

instream = new BufferedInputStream( new FileInputStream( file ) );
@@ -907,10 +907,10 @@ public class FTP
}
}

log( transferred + " files " + COMPLETED_ACTION_STRS[ action ] );
getLogger().info( transferred + " files " + COMPLETED_ACTION_STRS[ action ] );
if( skipped != 0 )
{
log( skipped + " files were not successfully " + COMPLETED_ACTION_STRS[ action ] );
getLogger().info( skipped + " files were not successfully " + COMPLETED_ACTION_STRS[ action ] );
}
}



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

@@ -334,7 +334,7 @@ public class MimeMail extends Task
}// for i

msg.setContent( attachments );
log( "sending email " );
getLogger().info( "sending email " );
Transport.send( msg );
}



+ 7
- 7
proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/optional/scm/AntStarTeamCheckOut.java View File

@@ -621,7 +621,7 @@ public class AntStarTeamCheckOut extends org.apache.tools.ant.Task
// send the message to the project log.

// Tell how many files were checked out.
log( checkedOut + " files checked out." );
getLogger().info( checkedOut + " files checked out." );
}

/**
@@ -856,7 +856,7 @@ public class AntStarTeamCheckOut extends org.apache.tools.ant.Task
{
strFolder = strFolder.substring( i + 1 );
}
log( " Folder: \"" + strFolder + "\"" );
getLogger().info( " Folder: \"" + strFolder + "\"" );
prevFolder = f;

// If we displayed the project, view, item type, or folder,
@@ -867,7 +867,7 @@ public class AntStarTeamCheckOut extends org.apache.tools.ant.Task
{
header.append( ",\t" ).append( p2.getDisplayName() );
}
log( header.toString() );
getLogger().info( header.toString() );
}

// Finally, show the Item properties ...
@@ -896,7 +896,7 @@ public class AntStarTeamCheckOut extends org.apache.tools.ant.Task
{
itemLine.append( ",\tNot locked" );
}
log( itemLine.toString() );
getLogger().info( itemLine.toString() );
}
// END VERBOSE ONLY

@@ -936,7 +936,7 @@ public class AntStarTeamCheckOut extends org.apache.tools.ant.Task
{
if( getVerbose() )
{
log( "Found " + getProjectName() + delim + getViewName() + delim );
getLogger().info( "Found " + getProjectName() + delim + getViewName() + delim );
}
runType( s, p, v, s.typeForName( (String)s.getTypeNames().FILE ) );
break;
@@ -960,7 +960,7 @@ public class AntStarTeamCheckOut extends org.apache.tools.ant.Task
{
if( getVerbose() )
{
log( "Found " + getProjectName() + delim );
getLogger().info( "Found " + getProjectName() + delim );
}
runProject( s, p );
break;
@@ -997,7 +997,7 @@ public class AntStarTeamCheckOut extends org.apache.tools.ant.Task

if( getVerbose() && getFolderName() != null )
{
log( "Found " + getProjectName() + delim + getViewName() +
getLogger().info( "Found " + getProjectName() + delim + getViewName() +
delim + getFolderName() + delim + "\n" );
}



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

@@ -333,7 +333,7 @@ public class CovReport extends Task
}
if( reference != null && !"xml".equals( format ) )
{
log( "Ignored reference. It cannot be used in non XML report." );
getLogger().info( "Ignored reference. It cannot be used in non XML report." );
reference = null;// nullify it so that there is no ambiguity
}



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

@@ -154,7 +154,7 @@ public class MSVSSCHECKIN extends MSVSS
"succesful for an unknown reason";
throw new TaskException( msg );
}
log( "Created dir: " + dir.getAbsolutePath() );
getLogger().info( "Created dir: " + dir.getAbsolutePath() );
}

cmd.createArgument().setValue( FLAG_OVERRIDE_WORKING_DIR + m_LocalPath );


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

@@ -181,7 +181,7 @@ public class MSVSSCHECKOUT extends MSVSS
"succesful for an unknown reason";
throw new TaskException( msg );
}
log( "Created dir: " + dir.getAbsolutePath() );
getLogger().info( "Created dir: " + dir.getAbsolutePath() );
}

cmd.createArgument().setValue( FLAG_OVERRIDE_WORKING_DIR + m_LocalPath );


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

@@ -389,7 +389,7 @@ public class MSVSSGET extends MSVSS
"successful for an unknown reason";
throw new TaskException( msg );
}
log( "Created dir: " + dir.getAbsolutePath() );
getLogger().info( "Created dir: " + dir.getAbsolutePath() );
}

cmd.createArgument().setValue( FLAG_OVERRIDE_WORKING_DIR + m_LocalPath );


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

@@ -22,7 +22,7 @@ import org.apache.tools.ant.util.FileUtils;
public abstract class ProjectComponent
extends AbstractTask
{
protected Project project = null;
protected Project project;

/**
* Sets the project object of this component. This method is used by project
@@ -58,16 +58,6 @@ public abstract class ProjectComponent
return FileUtils.newFileUtils().resolveFile( project.getBaseDir(), name );
}

/**
* Log a message with the default (INFO) priority.
*
* @param msg Description of Parameter
*/
public void log( String msg )
{
log( msg, Project.MSG_INFO );
}

/**
* Log a mesage with the give priority.
*


+ 0
- 10
proposal/myrmidon/src/todo/org/apache/tools/ant/Task.java View File

@@ -36,16 +36,6 @@ public abstract class Task
{
}

/**
* Log a message with the default (INFO) priority.
*
* @param msg Description of Parameter
*/
public void log( String msg )
{
log( msg, Project.MSG_INFO );
}

/**
* Log a mesage with the give priority.
*


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

@@ -36,7 +36,7 @@ public class BUnzip2 extends Unpack
{
if( source.lastModified() > dest.lastModified() )
{
log( "Expanding " + source.getAbsolutePath() + " to "
getLogger().info( "Expanding " + source.getAbsolutePath() + " to "
+ dest.getAbsolutePath() );

FileOutputStream out = null;


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

@@ -230,7 +230,7 @@ public class Checksum extends MatchingTask implements Condition
String message = "Could not find file "
+ file.getAbsolutePath()
+ " to generate checksum for.";
log( message );
getLogger().info( message );
throw new TaskException( message );
}
}
@@ -256,7 +256,7 @@ public class Checksum extends MatchingTask implements Condition
File src = (File)e.nextElement();
if( !isCondition )
{
log( "Calculating " + algorithm + " checksum for " + src );
getLogger().info( "Calculating " + algorithm + " checksum for " + src );
}
fis = new FileInputStream( src );
DigestInputStream dis = new DigestInputStream( fis,


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

@@ -243,7 +243,7 @@ public class Copy extends Task
{
String message = "Could not find file "
+ file.getAbsolutePath() + " to copy.";
log( message );
getLogger().info( message );
throw new TaskException( message );
}
}
@@ -334,7 +334,7 @@ public class Copy extends Task
{
if( fileCopyMap.size() > 0 )
{
log( "Copying " + fileCopyMap.size() +
getLogger().info( "Copying " + fileCopyMap.size() +
" file" + ( fileCopyMap.size() == 1 ? "" : "s" ) +
" to " + destDir.getAbsolutePath() );

@@ -397,7 +397,7 @@ public class Copy extends Task

if( count > 0 )
{
log( "Copied " + count +
getLogger().info( "Copied " + count +
" empty director" +
( count == 1 ? "y" : "ies" ) +
" to " + destDir.getAbsolutePath() );


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

@@ -239,7 +239,7 @@ public class Delete extends MatchingTask
{
if( usedMatchingTask )
{
log( "DEPRECATED - Use of the implicit FileSet is deprecated. Use a nested fileset element instead." );
getLogger().info( "DEPRECATED - Use of the implicit FileSet is deprecated. Use a nested fileset element instead." );
}

if( file == null && dir == null && filesets.size() == 0 )
@@ -259,11 +259,11 @@ public class Delete extends MatchingTask
{
if( file.isDirectory() )
{
log( "Directory " + file.getAbsolutePath() + " cannot be removed using the file attribute. Use dir instead." );
getLogger().info( "Directory " + file.getAbsolutePath() + " cannot be removed using the file attribute. Use dir instead." );
}
else
{
log( "Deleting: " + file.getAbsolutePath() );
getLogger().info( "Deleting: " + file.getAbsolutePath() );

if( !file.delete() )
{
@@ -294,7 +294,7 @@ public class Delete extends MatchingTask
*/
if( verbosity == Project.MSG_VERBOSE )
{
log( "Deleting directory " + dir.getAbsolutePath() );
getLogger().info( "Deleting directory " + dir.getAbsolutePath() );
}
removeDir( dir );
}
@@ -408,7 +408,7 @@ public class Delete extends MatchingTask
{
if( files.length > 0 )
{
log( "Deleting " + files.length + " files from " + d.getAbsolutePath() );
getLogger().info( "Deleting " + files.length + " files from " + d.getAbsolutePath() );
for( int j = 0; j < files.length; j++ )
{
File f = new File( d, files[ j ] );
@@ -454,7 +454,7 @@ public class Delete extends MatchingTask

if( dirCount > 0 )
{
log( "Deleted " + dirCount + " director" +
getLogger().info( "Deleted " + dirCount + " director" +
( dirCount == 1 ? "y" : "ies" ) +
" from " + d.getAbsolutePath() );
}


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

@@ -36,7 +36,7 @@ public class GUnzip extends Unpack
{
if( source.lastModified() > dest.lastModified() )
{
log( "Expanding " + source.getAbsolutePath() + " to "
getLogger().info( "Expanding " + source.getAbsolutePath() + " to "
+ dest.getAbsolutePath() );

FileOutputStream out = null;


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

@@ -160,7 +160,7 @@ public class GenerateKey
throw new TaskException( "dname must be set" );
}

log( "Generating Key for " + alias );
getLogger().info( "Generating Key for " + alias );
final ExecTask cmd = (ExecTask)project.createTask( "exec" );
cmd.setExecutable( "keytool" );



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

@@ -151,7 +151,7 @@ public class Get extends Task

try
{
log( "Getting: " + source );
getLogger().info( "Getting: " + source );

//set the timestamp to the file date.
long timestamp = 0;
@@ -163,7 +163,7 @@ public class Get extends Task
if( verbose )
{
Date t = new Date( timestamp );
log( "local file date : " + t.toString() );
getLogger().info( "local file date : " + t.toString() );
}

hasTimestamp = true;
@@ -209,13 +209,13 @@ public class Get extends Task
//not modified so no file download. just return instead
//and trace out something so the user doesn't think that the
//download happened when it didnt
log( "Not modified - so not downloaded" );
getLogger().info( "Not modified - so not downloaded" );
return;
}
// test for 401 result (HTTP only)
if( httpConnection.getResponseCode() == HttpURLConnection.HTTP_UNAUTHORIZED )
{
log( "Not authorized - check " + dest + " for details" );
getLogger().info( "Not authorized - check " + dest + " for details" );
return;
}

@@ -237,12 +237,12 @@ public class Get extends Task
}
catch( IOException ex )
{
log( "Error opening connection " + ex );
getLogger().info( "Error opening connection " + ex );
}
}
if( is == null )
{
log( "Can't get " + source + " to " + dest );
getLogger().info( "Can't get " + source + " to " + dest );
if( ignoreErrors )
return;
throw new TaskException( "Can't get " + source + " to " + dest );
@@ -270,7 +270,7 @@ public class Get extends Task
if( verbose )
{
Date t = new Date( remoteTimestamp );
log( "last modified = " + t.toString()
getLogger().info( "last modified = " + t.toString()
+ ( ( remoteTimestamp == 0 ) ? " - using current time instead" : "" ) );
}
if( remoteTimestamp != 0 )
@@ -279,7 +279,7 @@ public class Get extends Task
}
catch( IOException ioe )
{
log( "Error getting " + source + " to " + dest );
getLogger().info( "Error getting " + source + " to " + dest );
if( ignoreErrors )
return;
throw new TaskException( "Error", ioe );


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

@@ -774,7 +774,7 @@ public class Javac extends MatchingTask

CompilerAdapter adapter = CompilerAdapterFactory.getCompiler(
compiler, this );
log( "Compiling " + compileList.length +
getLogger().info( "Compiling " + compileList.length +
" source file"
+ ( compileList.length == 1 ? "" : "s" )
+ ( destDir != null ? " to " + destDir : "" ) );


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

@@ -49,7 +49,7 @@ public class Mkdir extends Task
"successful for an unknown reason";
throw new TaskException( msg );
}
log( "Created dir: " + dir.getAbsolutePath() );
getLogger().info( "Created dir: " + dir.getAbsolutePath() );
}
}
}

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

@@ -105,7 +105,7 @@ public class Move extends Copy
}
if( fileCopyMap.size() > 0 )
{// files to move
log( "Moving " + fileCopyMap.size() + " files to " +
getLogger().info( "Moving " + fileCopyMap.size() + " files to " +
destDir.getAbsolutePath() );

Enumeration e = fileCopyMap.keys();
@@ -200,7 +200,7 @@ public class Move extends Copy

if( count > 0 )
{
log( "Moved " + count + " empty directories to " + destDir.getAbsolutePath() );
getLogger().info( "Moved " + count + " empty directories to " + destDir.getAbsolutePath() );
}
}



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

@@ -41,7 +41,7 @@ public abstract class Pack extends Task
throws TaskException
{
validate();
log( "Building: " + zipFile.getAbsolutePath() );
getLogger().info( "Building: " + zipFile.getAbsolutePath() );
pack();
}



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

@@ -579,7 +579,7 @@ public class SQLExec extends Task
}
}

log( goodSql + " of " + totalSql +
getLogger().info( goodSql + " of " + totalSql +
" SQL statements executed successfully" );
}



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

@@ -390,7 +390,7 @@ public class SendEmail extends Task
throw new TaskException( "Attribute \"file\" or \"message\" is required." );
}

log( "Sending email" );
getLogger().info( "Sending email" );
mailMessage.sendAndClose();
}
catch( IOException ioe )


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

@@ -326,7 +326,7 @@ public class SignJar extends Task

cmd.createArg().setValue( alias );

log( "Signing Jar : " + jarSource.getAbsolutePath() );
getLogger().info( "Signing Jar : " + jarSource.getAbsolutePath() );
cmd.setFailonerror( true );
cmd.execute();
}


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

@@ -445,7 +445,7 @@ public class XSLTProcess extends MatchingTask implements XSLTLogger
styleSheetLastModified > outFile.lastModified() )
{
ensureDirectoryFor( outFile );
log( "Processing " + inFile + " to " + outFile );
getLogger().info( "Processing " + inFile + " to " + outFile );

configureLiaison( stylesheet );
liaison.transform( inFile, outFile );


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

@@ -276,7 +276,7 @@ public class Zip extends MatchingTask

String action = doUpdate ? "Updating " : "Building ";

log( action + archiveType + ": " + zipFile.getAbsolutePath() );
getLogger().info( action + archiveType + ": " + zipFile.getAbsolutePath() );

boolean success = false;
try


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

@@ -117,7 +117,7 @@ public class Cab extends MatchingTask
if( isUpToDate( files ) )
return;

log( "Building " + archiveType + ": " + cabFile.getAbsolutePath() );
getLogger().info( "Building " + archiveType + ": " + cabFile.getAbsolutePath() );

if( !Os.isFamily( "windows" ) )
{


+ 12
- 12
proposal/myrmidon/src/todo/org/apache/tools/ant/taskdefs/optional/IContract.java View File

@@ -527,7 +527,7 @@ public class IContract extends MatchingTask
{
if( !controlFile.exists() )
{
log( "WARNING: Control file " + controlFile.getAbsolutePath() + " doesn't exist. iContract will be run without control file." );
getLogger().info( "WARNING: Control file " + controlFile.getAbsolutePath() + " doesn't exist. iContract will be run without control file." );
}
this.controlFile = controlFile;
}
@@ -710,7 +710,7 @@ public class IContract extends MatchingTask
// issue warning if pre,post or invariant is used together with controlfile
if( ( pre || post || invariant ) && controlFile != null )
{
log( "WARNING: specifying pre,post or invariant will override control file settings" );
getLogger().info( "WARNING: specifying pre,post or invariant will override control file settings" );
}


@@ -796,7 +796,7 @@ public class IContract extends MatchingTask
}
catch( IOException e )
{
log( "File icontrol.properties not found. That's ok. Writing a default one." );
getLogger().info( "File icontrol.properties not found. That's ok. Writing a default one." );
}
iControlProps.setProperty( "sourceRoot", srcDir.getAbsolutePath() );
iControlProps.setProperty( "classRoot", classDir.getAbsolutePath() );
@@ -807,11 +807,11 @@ public class IContract extends MatchingTask
try
{// to read existing propertiesfile
iControlProps.store( new FileOutputStream( "icontrol.properties" ), ICONTROL_PROPERTIES_HEADER );
log( "Updated icontrol.properties" );
getLogger().info( "Updated icontrol.properties" );
}
catch( IOException e )
{
log( "Couldn't write icontrol.properties." );
getLogger().info( "Couldn't write icontrol.properties." );
}
}

@@ -821,9 +821,9 @@ public class IContract extends MatchingTask
{
if( iContractMissing )
{
log( "iContract can't be found on your classpath. Your classpath is:" );
log( classpath.toString() );
log( "If you don't have the iContract jar, go get it at http://www.reliable-systems.com/tools/" );
getLogger().info( "iContract can't be found on your classpath. Your classpath is:" );
getLogger().info( classpath.toString() );
getLogger().info( "If you don't have the iContract jar, go get it at http://www.reliable-systems.com/tools/" );
}
throw new TaskException( "iContract instrumentation failed. Code=" + result );
}
@@ -948,17 +948,17 @@ public class IContract extends MatchingTask
if( targets == null )
{
targets = new File( "targets" );
log( "Warning: targets file not specified. generating file: " + targets.getName() );
getLogger().info( "Warning: targets file not specified. generating file: " + targets.getName() );
writeTargets = true;
}
else if( !targets.exists() )
{
log( "Specified targets file doesn't exist. generating file: " + targets.getName() );
getLogger().info( "Specified targets file doesn't exist. generating file: " + targets.getName() );
writeTargets = true;
}
if( writeTargets )
{
log( "You should consider using iControl to create a target file." );
getLogger().info( "You should consider using iControl to create a target file." );
targetOutputStream = new FileOutputStream( targets );
targetPrinter = new PrintStream( targetOutputStream );
}
@@ -1018,7 +1018,7 @@ public class IContract extends MatchingTask
{
if( !dirty )
{
log( "Control file " + controlFile.getAbsolutePath() + " has been updated. Instrumenting all files..." );
getLogger().info( "Control file " + controlFile.getAbsolutePath() + " has been updated. Instrumenting all files..." );
}
dirty = true;
instrumentall = true;


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

@@ -459,7 +459,7 @@ public class Javah extends Task
public void setName( String name )
{
this.name = name;
log( "ClassArgument.name=" + name );
getLogger().info( "ClassArgument.name=" + name );
}

public String getName()


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

@@ -186,7 +186,7 @@ public class ManifestFile extends Task

if( manifestFile.exists() )
{
this.log( "update existing manifest file " + manifestFile.getAbsolutePath() );
getLogger().info( "update existing manifest file " + manifestFile.getAbsolutePath() );

if( container != null )
{
@@ -234,7 +234,7 @@ public class ManifestFile extends Task
try
{
manifestFile.delete();
log( "Replacing or creating new manifest file " + manifestFile.getAbsolutePath() );
getLogger().info( "Replacing or creating new manifest file " + manifestFile.getAbsolutePath() );
if( manifestFile.createNewFile() )
{
FileOutputStream fos = new FileOutputStream( manifestFile );


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

@@ -163,7 +163,7 @@ public class Native2Ascii extends MatchingTask
}
String message = "Converting " + count + " file"
+ ( count != 1 ? "s" : "" ) + " from ";
log( message + srcDir + " to " + destDir );
getLogger().info( message + srcDir + " to " + destDir );
for( int i = 0; i < files.length; i++ )
{
convert( files[ i ], m.mapFileName( files[ i ] )[ 0 ] );


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

@@ -500,7 +500,7 @@ public class NetRexxC extends MatchingTask
// compile the source files
if( compileList.size() > 0 )
{
log( "Compiling " + compileList.size() + " source file"
getLogger().info( "Compiling " + compileList.size() + " source file"
+ ( compileList.size() == 1 ? "" : "s" )
+ " to " + destDir );
doNetRexxCompile();
@@ -610,7 +610,7 @@ public class NetRexxC extends MatchingTask
{
if( filecopyList.size() > 0 )
{
log( "Copying " + filecopyList.size() + " file"
getLogger().info( "Copying " + filecopyList.size() + " file"
+ ( filecopyList.size() == 1 ? "" : "s" )
+ " to " + destDir.getAbsolutePath() );
Enumeration enum = filecopyList.keys();


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

@@ -228,7 +228,7 @@ public class PropertyFile extends Task
{
if( m_propertyfile.exists() )
{
log( "Updating property file: " + m_propertyfile.getAbsolutePath() );
getLogger().info( "Updating property file: " + m_propertyfile.getAbsolutePath() );
FileInputStream fis = null;
try
{
@@ -246,7 +246,7 @@ public class PropertyFile extends Task
}
else
{
log( "Creating new property file: " +
getLogger().info( "Creating new property file: " +
m_propertyfile.getAbsolutePath() );
FileOutputStream out = null;
try


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

@@ -198,7 +198,7 @@ public class Rpm extends Task
try
{
exe.execute();
log( "Building the RPM based on the " + specFile + " file" );
getLogger().info( "Building the RPM based on the " + specFile + " file" );
}
catch( IOException e )
{


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

@@ -270,7 +270,7 @@ public class XMLValidateTask extends Task
fileProcessed++;
}
}
log( fileProcessed + " file(s) have been successfully validated." );
getLogger().info( fileProcessed + " file(s) have been successfully validated." );
}

protected EntityResolver getEntityResolver()


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

@@ -308,7 +308,7 @@ public class Depend extends MatchingTask
int count = deleteAllAffectedFiles();

long duration = ( System.currentTimeMillis() - start ) / 1000;
log( "Deleted " + count + " out of date files in " + duration + " seconds" );
getLogger().info( "Deleted " + count + " out of date files in " + duration + " seconds" );
}
catch( Exception e )
{


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

@@ -682,7 +682,7 @@ public class CSharp
//get dependencies list.
DirectoryScanner scanner = super.getDirectoryScanner( _srcDir );
String[] dependencies = scanner.getIncludedFiles();
log( "compiling " + dependencies.length + " file" + ( ( dependencies.length == 1 ) ? "" : "s" ) );
getLogger().info( "compiling " + dependencies.length + " file" + ( ( dependencies.length == 1 ) ? "" : "s" ) );
String baseDir = scanner.getBasedir().toString();
//add to the command
for( int i = 0; i < dependencies.length; i++ )


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

@@ -312,7 +312,7 @@ public class Ilasm
//get dependencies list.
DirectoryScanner scanner = super.getDirectoryScanner( _srcDir );
String[] dependencies = scanner.getIncludedFiles();
log( "assembling " + dependencies.length + " file" + ( ( dependencies.length == 1 ) ? "" : "s" ) );
getLogger().info( "assembling " + dependencies.length + " file" + ( ( dependencies.length == 1 ) ? "" : "s" ) );
String baseDir = scanner.getBasedir().toString();
//add to the command
for( int i = 0; i < dependencies.length; i++ )


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

@@ -146,7 +146,7 @@ public class NetCommand
{
if( _traceCommandLine )
{
_owner.log( _commandLine.toString() );
//_owner.getLogger().info( _commandLine.toString() );
}
else
{


+ 4
- 4
proposal/myrmidon/src/todo/org/apache/tools/ant/taskdefs/optional/ejb/BorlandGenerateClient.java View File

@@ -132,11 +132,11 @@ public class BorlandGenerateClient extends Task

if( mode == null )
{
log( "mode is null default mode is java" );
getLogger().info( "mode is null default mode is java" );
setMode( JAVA_MODE );
}// end of if ()

log( "client jar file is " + clientjarfile );
getLogger().info( "client jar file is " + clientjarfile );

if( mode.equalsIgnoreCase( FORK_MODE ) )
{
@@ -158,7 +158,7 @@ public class BorlandGenerateClient extends Task
{
try
{
log( "mode : fork" );
getLogger().info( "mode : fork" );

org.apache.tools.ant.taskdefs.ExecTask execTask = null;
execTask = (ExecTask)getProject().createTask( "exec" );
@@ -203,7 +203,7 @@ public class BorlandGenerateClient extends Task
{
try
{
log( "mode : java" );
getLogger().info( "mode : java" );

org.apache.tools.ant.taskdefs.Java execTask = null;
execTask = (Java)getProject().createTask( "java" );


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

@@ -166,7 +166,7 @@ public class JJTree extends Task
targetName.substring( 0, targetName.indexOf( ".jjt" ) ) + ".jj" );
if( javaFile.exists() && target.lastModified() < javaFile.lastModified() )
{
log( "Target is already built - skipping (" + target + ")" );
getLogger().info( "Target is already built - skipping (" + target + ")" );
return;
}
cmdl.createArgument().setValue( target.getAbsolutePath() );


+ 5
- 5
proposal/myrmidon/src/todo/org/apache/tools/ant/taskdefs/optional/jdepend/JDependTask.java View File

@@ -344,7 +344,7 @@ public class JDependTask extends Task
}

if( getOutputFile() != null )
log( "Output to be stored in " + getOutputFile().getPath() );
getLogger().info( "Output to be stored in " + getOutputFile().getPath() );
log( "Executing: " + commandline.toString(), Project.MSG_VERBOSE );
try
{
@@ -389,11 +389,11 @@ public class JDependTask extends Task
catch( IOException e )
{
String msg = "JDepend Failed when creating the output file: " + e.getMessage();
log( msg );
getLogger().info( msg );
throw new TaskException( msg );
}
jdepend.setWriter( new PrintWriter( fw ) );
log( "Output to be stored in " + getOutputFile().getPath() );
getLogger().info( "Output to be stored in " + getOutputFile().getPath() );
}

PathTokenizer sourcesPath = new PathTokenizer( getSourcespath().toString() );
@@ -405,7 +405,7 @@ public class JDependTask extends Task
if( !f.exists() || !f.isDirectory() )
{
String msg = "\"" + f.getPath() + "\" does not represent a valid directory. JDepend would fail.";
log( msg );
getLogger().info( msg );
throw new TaskException( msg );
}
try
@@ -415,7 +415,7 @@ public class JDependTask extends Task
catch( IOException e )
{
String msg = "JDepend Failed when adding a source directory: " + e.getMessage();
log( msg );
getLogger().info( msg );
throw new TaskException( msg );
}
}


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

@@ -157,7 +157,7 @@ public class JlinkTask extends MatchingTask
{
throw new TaskException( "addfiles or mergefiles required! Please set." );
}
log( "linking: " + outfile.getPath() );
getLogger().info( "linking: " + outfile.getPath() );
log( "compression: " + compress, Project.MSG_VERBOSE );
jlink linker = new jlink();
linker.setOutfile( outfile.getPath() );


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

@@ -388,7 +388,7 @@ public class JspC extends MatchingTask

CompilerAdapter adapter =
CompilerAdapterFactory.getCompiler( compiler, this );
log( "Compiling " + compileList.size() +
getLogger().info( "Compiling " + compileList.size() +
" source file"
+ ( compileList.size() == 1 ? "" : "s" )
+ ( destDir != null ? " to " + destDir : "" ) );


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

@@ -197,7 +197,7 @@ public class WLJspc extends MatchingTask
args[ j++ ] = compileClasspath.toString();

this.scanDir( files );
log( "Compiling " + filesToDo.size() + " JSP files" );
getLogger().info( "Compiling " + filesToDo.size() + " JSP files" );

for( int i = 0; i < filesToDo.size(); i++ )
{


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

@@ -134,7 +134,7 @@ public class AggregateTransformer
throw new TaskException( "Errors while applying transformations", e );
}
final long dt = System.currentTimeMillis() - t0;
task.log( "Transform time: " + dt + "ms" );
//task.getLogger().info( "Transform time: " + dt + "ms" );
}

/**


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

@@ -62,7 +62,7 @@ abstract class XalanExecutor
}
}
String version = getXalanVersion( procVersion );
caller.task.log( "Using Xalan version: " + version );
//caller.task.getLogger().info( "Using Xalan version: " + version );
executor.setCaller( caller );
return executor;
}


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

@@ -301,7 +301,7 @@ public class MParse extends Task
File javaFile = new File( pathname );
if( javaFile.exists() && target.lastModified() < javaFile.lastModified() )
{
log( "Target is already build - skipping (" + target + ")" );
getLogger().info( "Target is already build - skipping (" + target + ")" );
return;
}

@@ -372,7 +372,7 @@ public class MParse extends Task
final File sunjj = new File( target.getParent(), name );
if( sunjj.exists() )
{
log( "Removing stale file: " + sunjj.getName() );
getLogger().info( "Removing stale file: " + sunjj.getName() );
sunjj.delete();
}
}


+ 10
- 10
proposal/myrmidon/src/todo/org/apache/tools/ant/taskdefs/optional/net/FTP.java View File

@@ -352,7 +352,7 @@ public class FTP
ftp.getReplyString() );
}
}
log( ACTION_STRS[ action ] + " files" );
getLogger().info( ACTION_STRS[ action ] + " files" );
transferFiles( ftp );
}

@@ -405,7 +405,7 @@ public class FTP

if( verbose )
{
log( "transferring " + filename + " to " + file.getAbsolutePath() );
getLogger().info( "transferring " + filename + " to " + file.getAbsolutePath() );
}

File pdir = new File( file.getParent() );// stay 1.1 compatible
@@ -595,7 +595,7 @@ public class FTP
{
if( verbose )
{
log( "deleting " + filename );
getLogger().info( "deleting " + filename );
}

if( !ftp.deleteFile( resolveFile( filename ) ) )
@@ -636,7 +636,7 @@ public class FTP
{
if( verbose )
{
log( "listing " + filename );
getLogger().info( "listing " + filename );
}

FTPFile ftpfile = ftp.listFiles( resolveFile( filename ) )[ 0 ];
@@ -659,7 +659,7 @@ public class FTP
{
if( verbose )
{
log( "creating directory: " + dir );
getLogger().info( "creating directory: " + dir );
}

if( !ftp.makeDirectory( dir ) )
@@ -677,14 +677,14 @@ public class FTP

if( verbose )
{
log( "directory already exists" );
getLogger().info( "directory already exists" );
}
}
else
{
if( verbose )
{
log( "directory created OK" );
getLogger().info( "directory created OK" );
}
}
}
@@ -733,7 +733,7 @@ public class FTP

if( verbose )
{
log( "transferring " + file.getAbsolutePath() );
getLogger().info( "transferring " + file.getAbsolutePath() );
}

instream = new BufferedInputStream( new FileInputStream( file ) );
@@ -907,10 +907,10 @@ public class FTP
}
}

log( transferred + " files " + COMPLETED_ACTION_STRS[ action ] );
getLogger().info( transferred + " files " + COMPLETED_ACTION_STRS[ action ] );
if( skipped != 0 )
{
log( skipped + " files were not successfully " + COMPLETED_ACTION_STRS[ action ] );
getLogger().info( skipped + " files were not successfully " + COMPLETED_ACTION_STRS[ action ] );
}
}



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

@@ -334,7 +334,7 @@ public class MimeMail extends Task
}// for i

msg.setContent( attachments );
log( "sending email " );
getLogger().info( "sending email " );
Transport.send( msg );
}



+ 7
- 7
proposal/myrmidon/src/todo/org/apache/tools/ant/taskdefs/optional/scm/AntStarTeamCheckOut.java View File

@@ -621,7 +621,7 @@ public class AntStarTeamCheckOut extends org.apache.tools.ant.Task
// send the message to the project log.

// Tell how many files were checked out.
log( checkedOut + " files checked out." );
getLogger().info( checkedOut + " files checked out." );
}

/**
@@ -856,7 +856,7 @@ public class AntStarTeamCheckOut extends org.apache.tools.ant.Task
{
strFolder = strFolder.substring( i + 1 );
}
log( " Folder: \"" + strFolder + "\"" );
getLogger().info( " Folder: \"" + strFolder + "\"" );
prevFolder = f;

// If we displayed the project, view, item type, or folder,
@@ -867,7 +867,7 @@ public class AntStarTeamCheckOut extends org.apache.tools.ant.Task
{
header.append( ",\t" ).append( p2.getDisplayName() );
}
log( header.toString() );
getLogger().info( header.toString() );
}

// Finally, show the Item properties ...
@@ -896,7 +896,7 @@ public class AntStarTeamCheckOut extends org.apache.tools.ant.Task
{
itemLine.append( ",\tNot locked" );
}
log( itemLine.toString() );
getLogger().info( itemLine.toString() );
}
// END VERBOSE ONLY

@@ -936,7 +936,7 @@ public class AntStarTeamCheckOut extends org.apache.tools.ant.Task
{
if( getVerbose() )
{
log( "Found " + getProjectName() + delim + getViewName() + delim );
getLogger().info( "Found " + getProjectName() + delim + getViewName() + delim );
}
runType( s, p, v, s.typeForName( (String)s.getTypeNames().FILE ) );
break;
@@ -960,7 +960,7 @@ public class AntStarTeamCheckOut extends org.apache.tools.ant.Task
{
if( getVerbose() )
{
log( "Found " + getProjectName() + delim );
getLogger().info( "Found " + getProjectName() + delim );
}
runProject( s, p );
break;
@@ -997,7 +997,7 @@ public class AntStarTeamCheckOut extends org.apache.tools.ant.Task

if( getVerbose() && getFolderName() != null )
{
log( "Found " + getProjectName() + delim + getViewName() +
getLogger().info( "Found " + getProjectName() + delim + getViewName() +
delim + getFolderName() + delim + "\n" );
}



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

@@ -333,7 +333,7 @@ public class CovReport extends Task
}
if( reference != null && !"xml".equals( format ) )
{
log( "Ignored reference. It cannot be used in non XML report." );
getLogger().info( "Ignored reference. It cannot be used in non XML report." );
reference = null;// nullify it so that there is no ambiguity
}



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

@@ -154,7 +154,7 @@ public class MSVSSCHECKIN extends MSVSS
"succesful for an unknown reason";
throw new TaskException( msg );
}
log( "Created dir: " + dir.getAbsolutePath() );
getLogger().info( "Created dir: " + dir.getAbsolutePath() );
}

cmd.createArgument().setValue( FLAG_OVERRIDE_WORKING_DIR + m_LocalPath );


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

@@ -181,7 +181,7 @@ public class MSVSSCHECKOUT extends MSVSS
"succesful for an unknown reason";
throw new TaskException( msg );
}
log( "Created dir: " + dir.getAbsolutePath() );
getLogger().info( "Created dir: " + dir.getAbsolutePath() );
}

cmd.createArgument().setValue( FLAG_OVERRIDE_WORKING_DIR + m_LocalPath );


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

@@ -389,7 +389,7 @@ public class MSVSSGET extends MSVSS
"successful for an unknown reason";
throw new TaskException( msg );
}
log( "Created dir: " + dir.getAbsolutePath() );
getLogger().info( "Created dir: " + dir.getAbsolutePath() );
}

cmd.createArgument().setValue( FLAG_OVERRIDE_WORKING_DIR + m_LocalPath );


Loading…
Cancel
Save