Browse Source

Change level of std error message from ERR to WARN

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@275799 13f79535-47bb-0310-9956-ffa450edef68
master
Peter Reilly 21 years ago
parent
commit
53ebb817e9
2 changed files with 6 additions and 6 deletions
  1. +4
    -4
      src/main/org/apache/tools/ant/Project.java
  2. +2
    -2
      src/main/org/apache/tools/ant/Task.java

+ 4
- 4
src/main/org/apache/tools/ant/Project.java View File

@@ -1101,15 +1101,15 @@ public class Project {
* the message is logged directly.
*
* @param output Message to handle. Should not be <code>null</code>.
* @param isError Whether the text represents an error (<code>true</code>)
* @param isWarning Whether the text represents an warning (<code>true</code>)
* or information (<code>false</code>).
*/
public void demuxOutput(String output, boolean isError) {
public void demuxOutput(String output, boolean isWarning) {
Task task = getThreadTask(Thread.currentThread());
if (task == null) {
log(output, isError ? MSG_ERR : MSG_INFO);
log(output, isWarning ? MSG_WARN : MSG_INFO);
} else {
if (isError) {
if (isWarning) {
task.handleErrorOutput(output);
} else {
task.handleOutput(output);


+ 2
- 2
src/main/org/apache/tools/ant/Task.java View File

@@ -344,12 +344,12 @@ public abstract class Task extends ProjectComponent {
}

/**
* Handles an error output by logging it with the ERR priority.
* Handles an error output by logging it with the WARN priority.
*
* @param output The error output to log. Should not be <code>null</code>.
*/
protected void handleErrorOutput(String output) {
log(output, Project.MSG_ERR);
log(output, Project.MSG_WARN);
}

/**


Loading…
Cancel
Save