ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From umag...@apache.org
Subject cvs commit: jakarta-ant/proposal/sandbox/filterreaders/src/main/org/apache/tools/ant/filters PrefixLines.java LineContains.java
Date Thu, 28 Feb 2002 00:44:00 GMT
umagesh     02/02/27 16:44:00

  Modified:    proposal/sandbox/filterreaders/src/main/org/apache/tools/ant/filters
                        PrefixLines.java LineContains.java
  Log:
  Empty line check inserted.
  
  Revision  Changes    Path
  1.5       +6 -3      jakarta-ant/proposal/sandbox/filterreaders/src/main/org/apache/tools/ant/filters/PrefixLines.java
  
  Index: PrefixLines.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/proposal/sandbox/filterreaders/src/main/org/apache/tools/ant/filters/PrefixLines.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- PrefixLines.java	27 Feb 2002 20:59:46 -0000	1.4
  +++ PrefixLines.java	28 Feb 2002 00:44:00 -0000	1.5
  @@ -127,12 +127,15 @@
   
           int ch = -1;
   
  +        if (queuedData != null && queuedData.length() == 0) {
  +            queuedData = null;
  +        }
  +
           if (queuedData != null) {
  +            ch = queuedData.charAt(0);
  +            queuedData = queuedData.substring(1);
               if (queuedData.length() == 0) {
                   queuedData = null;
  -            } else {
  -                ch = queuedData.charAt(0);
  -                queuedData = queuedData.substring(1);
               }
           } else {
               ch = in.read();
  
  
  
  1.5       +0 -1      jakarta-ant/proposal/sandbox/filterreaders/src/main/org/apache/tools/ant/filters/LineContains.java
  
  Index: LineContains.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/proposal/sandbox/filterreaders/src/main/org/apache/tools/ant/filters/LineContains.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- LineContains.java	27 Feb 2002 20:59:46 -0000	1.4
  +++ LineContains.java	28 Feb 2002 00:44:00 -0000	1.5
  @@ -157,7 +157,6 @@
                   for (int i = 0; i < containsSize; i++) {
                       String containsStr = (String) contains.elementAt(i);
                       if (line.indexOf(containsStr) == -1) {
  -                        System.out.println("Hello");
                           line = null;
                           break;
                       }
  
  
  

--
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