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/main/org/apache/tools/ant/taskdefs Manifest.java
Date Thu, 11 Oct 2001 14:55:07 GMT
conor       01/10/11 07:55:07

  Modified:    src/main/org/apache/tools/ant/taskdefs Manifest.java
  Log:
  Handle continuations in section names
  PR:	4075
  
  Revision  Changes    Path
  1.6       +11 -2     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.5
  retrieving revision 1.6
  diff -u -w -u -r1.5 -r1.6
  --- Manifest.java	2001/08/30 13:26:37	1.5
  +++ Manifest.java	2001/10/11 14:55:07	1.6
  @@ -275,9 +275,18 @@
                   if (line.charAt(0) == ' ') {
                       // continuation line
                       if (attribute == null) {
  +                        if (name != null) {
  +                            // a continuation on the first line is a continuation of the
name - concatenate
  +                            // this line and the name
  +                            name += line.substring(1);
  +                        }
  +                        else {
                           throw new ManifestException("Can't start an attribute with a continuation
line " + line);
                       }
  +                    }
  +                    else {
                       attribute.addContinuation(line);
  +                    }
                   }
                   else {
                       attribute = new Attribute(line);
  
  
  

Mime
View raw message