Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions doc/user_guide.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,10 @@ installerName:: the argument passed to the `--name` option when running `jpackag
jvmArgs:: list of JVM arguments to be passed to the virtual machine. +
_defaultValue_: the `jvmArgs` value configured in the `launcher` block or an empty list

identifier:: the argument passed to the `--identifier` option when running `jpackage` when executing the `jpackage` task. +
_defaultValue_: the main class name +
_usage example_: `identifier = "org.example.MyApp"`

installerOptions:: list of additional options to be passed to the `jpackage` executable when creating the application installer. +
_defaultValue_: empty list +
_usage example_: `installerOptions = ["--win-console"]`
Expand Down
3 changes: 3 additions & 0 deletions src/main/groovy/org/beryx/runtime/data/JPackageData.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ class JPackageData {

String installerName

@Input @Optional
String identifier

@Input
List<String> installerOptions = []

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ class JPackageImageTaskImpl extends BaseTaskImpl<JPackageTaskData> {
'--main-class', jpd.mainClass,
'--output', outputDir,
'--name', jpd.imageName,
'--identifier', jpd.identifier ?: jpd.mainClass,
'--runtime-image', td.runtimeImageDir,
*(jpd.jvmArgs ? jpd.jvmArgs.collect{['--java-options', adjustArg(it)]}.flatten() : []),
*jpd.imageOptions]
Expand Down