I use Gradle 1.12 Application Plugin. How to set DEFAULT_JVM_OPTS="-Djava.library.path=[pathToNativeLibrariesDir]"?
I need something like this DEFAULT_JVM_OPTS=-Djava.library.path=%APP_HOME%/lib but there are to problems: 1. It should be OS specific ($APP_HOME/lib for Linux) 2. APP_HOME variable in start scripts is defined after “set DEFAULT_JVM_OPTS=”
I know about solution: windowsScript.text = windowsScript.text.replace
But maybe there is more convinient way?