ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From co...@apache.org
Subject cvs commit: jakarta-ant/src/testcases/org/apache/tools/ant/taskdefs DemuxOutputTask.java
Date Mon, 25 Feb 2002 04:33:25 GMT
conor       02/02/24 20:33:25

  Modified:    src/testcases/org/apache/tools/ant/taskdefs
                        DemuxOutputTask.java
  Log:
  Make ParallelTest work on Windows
  
  Revision  Changes    Path
  1.3       +2 -2      jakarta-ant/src/testcases/org/apache/tools/ant/taskdefs/DemuxOutputTask.java
  
  Index: DemuxOutputTask.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/src/testcases/org/apache/tools/ant/taskdefs/DemuxOutputTask.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -w -u -r1.2 -r1.3
  --- DemuxOutputTask.java	21 Feb 2002 16:52:08 -0000	1.2
  +++ DemuxOutputTask.java	25 Feb 2002 04:33:25 -0000	1.3
  @@ -88,7 +88,7 @@
       }
   
       protected void handleOutput(String line) {
  -        if (!line.equals(randomOutValue)) {
  +        if (line.length() != 0 && !line.equals(randomOutValue)) {
               String message = "Received = [" + line + "], expected = [" 
                   + randomOutValue + "]";
               throw new BuildException(message);
  @@ -97,7 +97,7 @@
       }
       
       protected void handleErrorOutput(String line) {
  -        if (!line.equals(randomErrValue)) {
  +        if (line.length() != 0 && !line.equals(randomErrValue)) {
               String message = "Received = [" + line + "], expected = [" 
                   + randomErrValue + "]";
               throw new BuildException(message);
  
  
  

--
To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message