git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269372 13f79535-47bb-0310-9956-ffa450edef68master
| @@ -179,6 +179,24 @@ public class Ant extends Task { | |||||
| } | } | ||||
| } | } | ||||
| protected void handleOutput(String line) { | |||||
| if (p1 != null) { | |||||
| p1.demuxOutput(line, false); | |||||
| } | |||||
| else { | |||||
| super.handleOutput(line); | |||||
| } | |||||
| } | |||||
| protected void handleErrorOutput(String line) { | |||||
| if (p1 != null) { | |||||
| p1.demuxOutput(line, true); | |||||
| } | |||||
| else { | |||||
| super.handleErrorOutput(line); | |||||
| } | |||||
| } | |||||
| /** | /** | ||||
| * Do the execution. | * Do the execution. | ||||
| */ | */ | ||||
| @@ -127,4 +127,23 @@ public class CallTarget extends Task { | |||||
| public void setTarget(String target) { | public void setTarget(String target) { | ||||
| subTarget = target; | subTarget = target; | ||||
| } | } | ||||
| protected void handleOutput(String line) { | |||||
| if (callee != null) { | |||||
| callee.handleOutput(line); | |||||
| } | |||||
| else { | |||||
| super.handleOutput(line); | |||||
| } | |||||
| } | |||||
| protected void handleErrorOutput(String line) { | |||||
| if (callee != null) { | |||||
| callee.handleErrorOutput(line); | |||||
| } | |||||
| else { | |||||
| super.handleErrorOutput(line); | |||||
| } | |||||
| } | |||||
| } | } | ||||