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:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to