Skip to content

[GR-71146] Make ParseRuntimeOptions non-experimental #12431

@maxandersen

Description

@maxandersen

Feature request

I'm trying to create native image of jbang; and jbang is a cli that take arguments like -Dkey=value and if I run that with default native image those options never reaches me. See #6933 which is related.

I've enabled ParseRuntimeOptions but now I have to look at:

Warning: The option '-H:-ParseRuntimeOptions' is experimental and must be enabled via '-H:+UnlockExperimentalVMOptions' in the future. Warning: Please re-evaluate whether any experimental option is required, and either remove or unlock it. The build output lists all active experimental options, including where they come from and possible alternatives. If you think an experimental option should be considered as stable, please file an issue.

so here I am - filing an issue :)

Please include the following information:

Is your feature request related to a problem? Please describe.

yes, without this feature native-image binary swallows its arguments.

Describe the solution you'd like.

At mimium to make it ok / non-experimental to turn off parseruntime options.

Second would be to provide a buildtime setting about being able to pass in the JVM arguments by some other means, i.e. an environment variable instead?

Describe who do you think will benefit the most.
GraalVM users - anyone with an overlap in command line arguments with java.

Describe alternatives you've considered.
Not use native image :)

Additional context.
Add any other context about the feature request here.
https://jbang.dev

Express whether you'd like to help contributing this feature
sure :)

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions