Community
Participate
Working Groups
Windows users often configure their workspaces to maximize Unix compatibility; workspace preference and project settings. A JUnit launch should therefore (at least as an option) propagate the workspace line endings preference to the Java system property of the launch JVM.
*** This bug has been marked as a duplicate of bug 269580 ***
No. bug 269580 requests the launch configuration file to use Unix line endings. This bug requests that the launched process have an environment in which the Java property has Unix line endings.
(In reply to Ed Willink from comment #2) > No. bug 269580 requests the launch configuration file to use Unix line > endings. > > This bug requests that the launched process have an environment in which the > Java property has Unix line endings. Sorry, you're right. If I really wanted to maximize Unix compatibility, then I'd set the 'line.separator' property default VM argument in the JREs ('Installed JREs' preference page. However, this does not work (see bug 424353 comment 1). I'm marking this as a duplicate of bug 424353, since that would solve this issue here and because there's no way to fix this bug here as outline in bug 424353 comment 1. *** This bug has been marked as a duplicate of bug 424353 ***
Bug 424353 is open again as helpwanted.
(In reply to Dani Megert from comment #3) > If I really wanted to maximize Unix compatibility, then I'd set the > 'line.separator' property default VM argument in the JREs ('Installed JREs' > preference page. Would this not fix your use case? I'd assume this to be the safest thing if you really want max. Unix compatibility. And it would not only "fix" the JUnit case.
(In reply to Dani Megert from comment #5) > (In reply to Dani Megert from comment #3) > > If I really wanted to maximize Unix compatibility, then I'd set the > > 'line.separator' property default VM argument in the JREs ('Installed JREs' > > preference page. > > Would this not fix your use case? I'd assume this to be the safest thing if > you really want max. Unix compatibility. And it would not only "fix" the > JUnit case. It's similar, but if I have three JVMs registered, I would have four settings - Eclipse workspace - 3 JVM settings which I need to keep consistent, when all I really want is to say good bye to CR LF new lines forever.