Philip Dowie commented on Bug MLICENSE-90

> I just use the line separator from the system.

That's the problem. The entire file is rewritten, instead of just the area where the header should be.

One should not have to mess about with version control systems & force a particular EOL style. In many cases, one simply does not care.

Most editors I've come across leave EOL style as it is in the file - some even use the style detected in the file. None of them change the EOL style in untouched bits of the file, and neither should this plugin.

Perhaps the following approach:

1. use BufferedReader.readLine() for the first lines, munge those if necessary (the munging happens when you .writeLine()), since it's difficult to not munge them,
2. write the header
3. then use .read(char[]) for the rest of the file, writing back the same characters.

Instead, somewhere, the entire file is being rewritten, in a readLine/writeLine kind of way.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
--------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email

Reply via email to