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

Allow a parameter to be passed to the hollow JAR #6

Open
rafabene opened this issue Nov 5, 2016 · 3 comments
Open

Allow a parameter to be passed to the hollow JAR #6

rafabene opened this issue Nov 5, 2016 · 3 comments

Comments

@rafabene
Copy link
Contributor

rafabene commented Nov 5, 2016

WildFly Swarm can be used with hollow jars.
More info: http://wildfly-swarm.io/posts/announcing-wildfly-swarm-2016-9/

I need to start wildfly-swarm using:

java -jar {JAVA_APP_DIR}/hola-hollow-swarm.jar {JAVA_APP_DIR}/hola.war

@akram
Copy link

akram commented Sep 26, 2017

+1

@Hellspam
Copy link
Contributor

Hellspam commented Nov 9, 2017

Params can be passed already.
After you set JAVA_APP_DIR for example, you can call run-java like so:
run-java ${JAVA_APP_DIR}/hola.war
And the params are passed to your command line.
I have tested this with our spring boot command line variables and it works fine.

@rhuss
Copy link
Contributor

rhuss commented Nov 12, 2017

Yes, arguments are honoured, too, if specified explicitly. So this is a nice way, too. You could set the JAVA_APP_JAR to the hollow uberjar to be more specific.

I wonder however if we could be a bit more clever to detect hollow jars automatically. Is there a reliable way to detect hollow jars from a given set of files ? Best without referring to filenames, maybe there's a specific manifest entry in the hollow uberjar.

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

4 participants