badass-jlink-plugin icon indicating copy to clipboard operation
badass-jlink-plugin copied to clipboard

Different JVM arguments for different target platforms

Open ns16 opened this issue 4 years ago • 2 comments

Can I set different JVM arguments for different target platforms?

ns16 avatar Nov 27 '19 12:11 ns16

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
}

siordache avatar Nov 27 '19 13:11 siordache

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.

ns16 avatar Nov 27 '19 13:11 ns16