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/src/main/org/apache/tools/ant/taskdefs Manifest.java
Date Wed, 21 Nov 2001 08:14:45 GMT
umagesh     01/11/21 00:14:45

  Modified:    src/main/org/apache/tools/ant/taskdefs Manifest.java
  Log:
  Lines in manifest that have nothing but spaces are treated as empty lines just like JDK's
Jar utility does.
  
  PR: 4840
  
  Revision  Changes    Path
  1.10      +1 -1      jakarta-ant/src/main/org/apache/tools/ant/taskdefs/Manifest.java
  
  Index: Manifest.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/src/main/org/apache/tools/ant/taskdefs/Manifest.java,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- Manifest.java	2001/11/15 13:33:25	1.9
  +++ Manifest.java	2001/11/21 08:14:45	1.10
  @@ -280,7 +280,7 @@
               Attribute attribute = null;
               while (true) { 
                   String line = reader.readLine();
  -                if (line == null || line.length() == 0) {
  +                if (line == null || line.trim().length() == 0) {
                       return null;
                   }
                   if (line.charAt(0) == ' ') {
  
  
  

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