-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SI-4615 Adds proper handling of -D and -J options Windows #1957
Conversation
On Windows, -D and -J parameters weren't being added to JAVA_OPTS.
Started jenkins job JenkinsJob(pr-rangepos) at https://scala-webapps.epfl.ch/jenkins/job/pr-rangepos/1473/ |
jenkins job pr-scala-testsuite-linux-opt: successful -- manually verified |
jenkins job pr-rangepos: successful -- manually verified |
More than a year and half after having wrote the patch, I have second thoughts on whether my fix is the right approach. I essentially wrote a tokenizer for the command line in BAT language and this is probably going to be fragile. I wonder if there are more reliable approaches by putting the -D arguments into a variable, instead. |
I don't have much experience with the high wizardry of advanced cmd.exe scripting (and thanks to MSys I don't have to -- unless I'm using a Scala .sh script that doesn't work there) but I distilled a test.bat that logs the command line from this template and tried a few things on Windows 7 x64. My observations:
|
I just went over to check
|
So is the consensus to close this PR? Or do we take it, flaws and all, as at least some improvement in the Windows situation until something better can be done? |
I'd vote to close this PR. Has the jruby.exe been working pretty well? May be it is the way to go. Quoting from http://jira.codehaus.org/browse/JRUBY-4100:
Applying my patch would definitely be piling a hack that does not fully work. |
Just so everybody knows what we would be getting into by going native https://github.com/jruby/jruby-launcher |
i don't think we should go native, but if the OP retracts this PR, I don't think we should merge it and create expectations that aren't going to be met... |
K, whacking |
On Windows, -D and -J parameters weren't being added to JAVA_OPTS.
I've manually verified this patch on a Windows 7 VM, but we don't seem to have a way to run an automated test of the scala or scalac scripts.
review @adriaanm