Skip to content

scala doesn't take -D properties on WIN7 #4615

Description

@scabug

scala -Dprop=value -e "println(System.getProperty("prop"))"

output

null

this problem does not appear on Linux or Mac

This pull request scala/scala#1957 based on the 2nd attachment to this bug did not address all the issues. From the pull request discussion:

  • While this parses the -D and -J options, they also get passed as arguments to the class that is run in the end (and I expect that trying to fix this would make the other problems much worse)
  • Quoted -J options are silently dropped

  • Single-quoted -D options are silently dropped

  • Double-quoted -D options are either silently dropped or result in an error

Metadata

Metadata

Assignees

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions