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

Different JVM arguments for different target platforms #102

Open
ns16 opened this issue Nov 27, 2019 · 2 comments
Open

Different JVM arguments for different target platforms #102

ns16 opened this issue Nov 27, 2019 · 2 comments
Labels
enhancement New feature or request

Comments

@ns16
Copy link

ns16 commented Nov 27, 2019

Can I set different JVM arguments for different target platforms?

@siordache
Copy link
Member

Do you mean target-platform-specific values for the jvmArgs defined in launcher?

jlink {
    launcher {
        jvmArgs = [...]
        ....
    }
    ...
}

There is currently no support for this. You can try to adjust the start scripts yourself after executing the jlink task:

tasks.jlink.doLast {
    // Put here your code that adjusts each start script with platform-specific JVM arguments
}

@ns16
Copy link
Author

ns16 commented Nov 27, 2019

Do you mean target-platform-specific values for the jvmArgs defined in launcher?

Yes.

You can try to adjust the start scripts yourself after executing the jlink task

Thanks, I'll try.

@airsquared airsquared added the enhancement New feature or request label Sep 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants