[378980] Make line delimiter for Manifest configurable by CodeConfig #96
Conversation
|
Issue tracker reference: |
|
\r\n is hard-coded in java.util.jar.Manifest.write(OutputStream), even though the spec allows for \r\n and \n |
|
Right, I was not aware of that. So does this mean since standard Java Manifest uses \r\n it is also mandatory for MergeableManifest to do the same? Seems so, i.e. I should close the bug as WONTFIX? |
|
Further investigation shows that Can you confirm that your change doesn't mix line-edings, e.g. because a method from the super-class ( |
| @@ -50,38 +50,47 @@ | |||
| public static final Attributes.Name BUNDLE_LOCALIZATION = new Attributes.Name("Bundle-Localization"); | |||
| public static final Attributes.Name BUNDLE_ACTIVATOR = new Attributes.Name("Bundle-Activator"); | |||
|
|
|||
| private static final String LINEBREAK = "\r\n"; | |||
| private static final String LINEBREAK = Strings.newLine(); | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this filed is only used by deprecated methods, right? Then it should be deprecated itself.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Correct, it is only used in deprecated contexts. Will fix that.
0ebc94e
to
83e5952
Compare
Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
83e5952
to
36ec5d1
Compare
|
thx! |
|
Thanks for the review :) |

Line delimiter is determined by CodeConfig and reached into MergeableManifest.
Signed-off-by: Karsten Thoms karsten.thoms@itemis.de