-
Notifications
You must be signed in to change notification settings - Fork 22
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
How to distribute JRE into a separate directory? #122
Comments
Looks like it copies Jre here. badass-runtime-plugin/src/main/groovy/org/beryx/runtime/impl/RuntimeTaskImpl.groovy Line 51 in 9047502
@siordache is there a way to override it? |
For now I could fix it with the below snippet but there should be a cleaner way to do it.
|
Reassign the runtime dir to another path is not a problem, you can
task afterBuildTask(dependsOn: jpackageImage) doLast {
def raw = "${rootDir}/gem"
def build = "${buildDir}/jpackage/gem"
copy {
from "${raw}/gemConfig"
into "${build}/gemConfig"
exclude 'config.json'
exclude 'recipes.json'
exclude 'dynamic.*'
}
copy {
from "${raw}/appCfgBackup/gem.cfg"
into "${build}/app"
}
copy {
from "${raw}"
into "${build}"
include '*.dll'
include 'UpdateLog.txt'
}
delete "${build}/runtime"
}
|
I just did a test build here and the layout I see is nothing like what's described above. I get:
app then has the jars for the app, while runtime looks like the cut-down JRE. This ticket is quite old, however, so it's quite possible the software is a completely different version now, or you were running on a much older JDK. Is this issue still a problem? There's still no way to configure the layout, but the jre is at least in its own directory. |
Hi
The runtime and runtimeZip tasks add JRE binaries into the "lib" directory where my app jars are. Also, a "conf" and "legal" directory is created inside the app directory. How can I change this so all JRE-related stuff gets moved into a single directory named "jre" inside the app directory?
Regards
The text was updated successfully, but these errors were encountered: