1 Jun 2004 18:16
RE: manifest attribute in ANT
<Jan.Materne <at> rzf.fin-nrw.de>
2004-06-01 16:16:43 GMT
2004-06-01 16:16:43 GMT
Confirmed on cvs version from "May 24 2004".
Had a look into the source and it seems that that was done intentionally:
0050: public class Manifest {
0071: /** The max length of a line in a Manifest */
0072: public static final int MAX_LINE_LENGTH = 72;
0073:
0074: /**
0075: * Max length of a line section which is continued. Need to allow
0076: * for the CRLF.
0077: */
0078: public static final int MAX_SECTION_LENGTH = MAX_LINE_LENGTH - 2;
0079:
0080: /** The End-Of-Line marker in manifests */
0081: public static final String EOL = "\r\n";
0082:
0087: public static class Attribute {
0300: private void writeValue(PrintWriter writer, String value)
0303: while (line.getBytes().length > MAX_LINE_LENGTH) {
0305: int breakIndex = MAX_SECTION_LENGTH;
0306: String section = line.substring(0, breakIndex);
0316: writer.print(section + EOL);
0317: line = " " + line.substring(breakIndex);
0318: }
0319: writer.print(line + EOL);
0320: }
But I don“t know the reason for that ... maybe something in the specs?
Jan
(Continue reading)
RSS Feed