|
@@ -1,5 +1,5 @@ |
|
|
/* |
|
|
/* |
|
|
* Copyright 2002,2004 The Apache Software Foundation |
|
|
|
|
|
|
|
|
* Copyright 2002,2004-2005 The Apache Software Foundation |
|
|
* |
|
|
* |
|
|
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
|
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
|
* you may not use this file except in compliance with the License. |
|
|
* you may not use this file except in compliance with the License. |
|
@@ -144,7 +144,7 @@ public final class AnsiColorLogger extends DefaultLogger { |
|
|
* Set the colors to use from a property file specified by the |
|
|
* Set the colors to use from a property file specified by the |
|
|
* special ant property ant.logger.defaults |
|
|
* special ant property ant.logger.defaults |
|
|
*/ |
|
|
*/ |
|
|
private final void setColors() { |
|
|
|
|
|
|
|
|
private void setColors() { |
|
|
String userColorFile = System.getProperty("ant.logger.defaults"); |
|
|
String userColorFile = System.getProperty("ant.logger.defaults"); |
|
|
String systemColorFile = |
|
|
String systemColorFile = |
|
|
"/org/apache/tools/ant/listener/defaults.properties"; |
|
|
"/org/apache/tools/ant/listener/defaults.properties"; |
|
@@ -200,7 +200,7 @@ public final class AnsiColorLogger extends DefaultLogger { |
|
|
/** |
|
|
/** |
|
|
* @see DefaultLogger#printMessage |
|
|
* @see DefaultLogger#printMessage |
|
|
*/ |
|
|
*/ |
|
|
protected final void printMessage(final String message, |
|
|
|
|
|
|
|
|
protected void printMessage(final String message, |
|
|
final PrintStream stream, |
|
|
final PrintStream stream, |
|
|
final int priority) { |
|
|
final int priority) { |
|
|
if (message != null && stream != null) { |
|
|
if (message != null && stream != null) { |
|
@@ -228,6 +228,8 @@ public final class AnsiColorLogger extends DefaultLogger { |
|
|
msg.append(END_COLOR); |
|
|
msg.append(END_COLOR); |
|
|
break; |
|
|
break; |
|
|
case Project.MSG_DEBUG: |
|
|
case Project.MSG_DEBUG: |
|
|
|
|
|
// Fall through |
|
|
|
|
|
default: |
|
|
msg.insert(0, debugColor); |
|
|
msg.insert(0, debugColor); |
|
|
msg.append(END_COLOR); |
|
|
msg.append(END_COLOR); |
|
|
break; |
|
|
break; |
|
|