Skip to content
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

Is possible to use JRuby command line arguments inside of a .jar? #5150

Closed
bolandross opened this issue Apr 24, 2018 · 1 comment
Closed

Comments

@bolandross
Copy link

Hey folks,
sorry for the fact that this isn't an 'issue' and more just a question.

I am packaging my app with warbler to create a Java Jar file.
As far as I know, this bundles up JRuby with all my gem dependencies and then runs my script. Is there a way to specify command line arguments for this?

For example, I'd like to use the --dev argument for improved startup times.
Can I somehow define this inside of the jar manifest file?

@enebo enebo added this to the Invalid or Duplicate milestone Apr 24, 2018
@enebo
Copy link
Member

enebo commented Apr 24, 2018

This is what I have always considered a weird oversight in executable jar format in Java. You basically need to load java and the re-load it again (tiny Java programs startup much faster than JRuby itself so this may not be a big hit). I think there are some other programs which were made for this too (Capsule?):

http://blog.codejava.net/nam/trick-for-passing-vm-options-when-launching-jar-file/

@enebo enebo closed this as completed Apr 24, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants