Class JpackageTask
java.lang.Object
org.gradle.api.internal.AbstractTask
org.gradle.api.DefaultTask
de.infolektuell.gradle.jpackage.tasks.JDKToolTask
de.infolektuell.gradle.jpackage.tasks.JpackageTask
- All Implemented Interfaces:
Comparable<org.gradle.api.Task>,org.gradle.api.internal.DynamicObjectAware,org.gradle.api.internal.TaskInternal,org.gradle.api.Named,org.gradle.api.plugins.ExtensionAware,org.gradle.api.Task,org.gradle.util.Configurable<org.gradle.api.Task>
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.gradle.api.Named
org.gradle.api.Named.Namer -
Field Summary
Fields inherited from interface org.gradle.api.Task
TASK_ACTION, TASK_CONSTRUCTOR_ARGS, TASK_DEPENDS_ON, TASK_DESCRIPTION, TASK_GROUP, TASK_NAME, TASK_OVERWRITE, TASK_TYPE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract org.gradle.api.provider.Property<@NonNull String> URL of the application's home pageorg.gradle.api.NamedDomainObjectSet<@NonNull Launcher> abstract org.gradle.api.file.ConfigurableFileCollectionabstract org.gradle.api.provider.Property<@NonNull String> Description of the applicationabstract org.gradle.api.file.DirectoryPropertyLocation of the predefined application image that is used to build an installable package or to sign the predefined application imageabstract org.gradle.api.provider.Property<@NonNull String> Name of the application and/or packageabstract org.gradle.api.provider.Property<@NonNull String> Version of the application and/or packageabstract org.gradle.api.provider.ListProperty<@NonNull org.gradle.api.file.RegularFile> Arg files that contain additional options to be passed to jpackageabstract org.gradle.api.provider.ListProperty<@NonNull String> Command line arguments to pass to the main class if no command line arguments are given to the launcher This option can be used multiple times.abstract org.gradle.api.provider.Property<@NonNull String> Copyright for the applicationabstract org.gradle.api.file.DirectoryPropertygetDest()Path where generated output file is placed (absolute path or relative to the current directory) Defaults to the current working directory.abstract org.gradle.api.provider.SetProperty<@NonNull org.gradle.api.file.RegularFile> protected abstract org.gradle.api.file.FileSystemOperationsabstract org.gradle.api.file.RegularFilePropertygetIcon()Path of the icon of the application package (absolute path or relative to the current directory)abstract org.gradle.api.file.DirectoryPropertygetInput()Path of the input directory that contains the files to be packaged (absolute path or relative to the current directory) All files in the input directory will be packaged into the application image.abstract org.gradle.api.file.DirectoryPropertyabstract org.gradle.api.provider.ListProperty<@NonNull String> Options to pass to the Java runtime This option can be used multiple times.abstract org.gradle.api.provider.Property<@NonNull Boolean> Request to create an installer that will register the main application launcher as a background service-type application.abstract org.gradle.api.file.RegularFilePropertyPath to the license file (absolute path or relative to the current directory)abstract org.gradle.api.provider.Property<@NonNull String> abstract org.gradle.api.file.RegularFilePropertyabstract org.gradle.api.provider.Property<@NonNull String> protected abstract org.gradle.api.model.ObjectFactoryabstract org.gradle.api.provider.Property<@NonNull JpackagePlatformOptions> abstract org.gradle.api.file.DirectoryPropertyPath to override jpackage resources Icons, template files, and other resources of jpackage can be over-ridden by adding replacement resources to this directory.abstract org.gradle.api.file.DirectoryPropertyPath of the predefined runtime image that will be copied into the application image (absolute path or relative to the current directory) If --runtime-image is not specified, jpackage will run jlink to create the runtime image using options: --strip-debug, --no-header-files, --no-man-pages, and --strip-native-commands.abstract org.gradle.api.provider.Property<@NonNull String> getType()abstract org.gradle.api.provider.Property<@NonNull String> Vendor of the applicationabstract org.gradle.api.provider.Property<@NonNull Boolean> Enables verbose outputprotected voidjpackage()Methods inherited from class de.infolektuell.gradle.jpackage.tasks.JDKToolTask
exec, getExecOperations, getExecutable, getMetadataMethods inherited from class org.gradle.api.DefaultTask
compareTo, configure, dependsOn, doFirst, doFirst, doFirst, doLast, doLast, doLast, finalizedBy, getActions, getAnt, getDependsOn, getDescription, getDestroyables, getDidWork, getEnabled, getExtensions, getFinalizedBy, getGroup, getInputs, getLocalState, getLogger, getLogging, getMustRunAfter, getName, getOutputs, getPath, getProject, getShouldRunAfter, getState, getTaskDependencies, getTemporaryDir, getTimeout, hasProperty, mustRunAfter, onlyIf, onlyIf, onlyIf, property, setActions, setDependsOn, setDescription, setDidWork, setEnabled, setFinalizedBy, setGroup, setMustRunAfter, setOnlyIf, setOnlyIf, setOnlyIf, setProperty, setShouldRunAfter, shouldRunAfter, usesServiceMethods inherited from class org.gradle.api.internal.AbstractTask
acceptServiceReferences, appendParallelSafeAction, doNotTrackState, getAsDynamicObject, getIdentityPath, getImpliesSubProjects, getLifecycleDependencies, getOnlyIf, getReasonNotToTrackState, getReasonTaskIsIncompatibleWithConfigurationCache, getRequiredServices, getServices, getSharedResources, getStandardOutputCapture, getTaskActions, getTaskIdentity, getTemporaryDirFactory, hasTaskActions, injectIntoNewInstance, isCompatibleWithConfigurationCache, isEnabled, isHasCustomActions, notCompatibleWithConfigurationCache, prependParallelSafeAction, setImpliesSubProjectsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.gradle.api.Task
doNotTrackState, notCompatibleWithConfigurationCache
-
Constructor Details
-
JpackageTask
public JpackageTask()
-
-
Method Details
-
getObjects
@Inject protected abstract org.gradle.api.model.ObjectFactory getObjects() -
getFileSystemOperations
@Inject protected abstract org.gradle.api.file.FileSystemOperations getFileSystemOperations() -
getMainModule
-
getMainClass
-
getMainJar
@Optional @InputFile @PathSensitive(RELATIVE) public abstract org.gradle.api.file.RegularFileProperty getMainJar() -
getArgFiles
@InputFiles @PathSensitive(RELATIVE) public abstract org.gradle.api.provider.ListProperty<@NonNull org.gradle.api.file.RegularFile> getArgFiles()Arg files that contain additional options to be passed to jpackage -
getType
-
getAppVersion
Version of the application and/or package -
getCopyright
Copyright for the application -
getAppDescription
@Optional @Input public abstract org.gradle.api.provider.Property<@NonNull String> getAppDescription()Description of the application -
getIcon
@Optional @InputFile @PathSensitive(RELATIVE) public abstract org.gradle.api.file.RegularFileProperty getIcon()Path of the icon of the application package (absolute path or relative to the current directory) -
getAppName
Name of the application and/or package -
getDest
@OutputDirectory public abstract org.gradle.api.file.DirectoryProperty getDest()Path where generated output file is placed (absolute path or relative to the current directory) Defaults to the current working directory. -
getVendor
Vendor of the application -
getVerbose
Enables verbose output -
getRuntimeImage
@Optional @InputDirectory @PathSensitive(RELATIVE) public abstract org.gradle.api.file.DirectoryProperty getRuntimeImage()Path of the predefined runtime image that will be copied into the application image (absolute path or relative to the current directory) If --runtime-image is not specified, jpackage will run jlink to create the runtime image using options: --strip-debug, --no-header-files, --no-man-pages, and --strip-native-commands. Option is required when creating a runtime package. -
getInput
@Optional @InputDirectory @PathSensitive(RELATIVE) public abstract org.gradle.api.file.DirectoryProperty getInput()Path of the input directory that contains the files to be packaged (absolute path or relative to the current directory) All files in the input directory will be packaged into the application image. -
getAppContent
@InputFiles @PathSensitive(RELATIVE) public abstract org.gradle.api.file.ConfigurableFileCollection getAppContent() -
getAdditionalLaunchers
-
getArguments
@Optional @Input public abstract org.gradle.api.provider.ListProperty<@NonNull String> getArguments()Command line arguments to pass to the main class if no command line arguments are given to the launcher This option can be used multiple times. -
getJavaOptions
@Optional @Input public abstract org.gradle.api.provider.ListProperty<@NonNull String> getJavaOptions()Options to pass to the Java runtime This option can be used multiple times. -
getPlatformOptions
@Optional public abstract org.gradle.api.provider.Property<@NonNull JpackagePlatformOptions> getPlatformOptions() -
getAboutURL
URL of the application's home page -
getApplicationImage
@Optional @InputDirectory @PathSensitive(RELATIVE) public abstract org.gradle.api.file.DirectoryProperty getApplicationImage()Location of the predefined application image that is used to build an installable package or to sign the predefined application image -
getFileAssociations
@Optional @InputFiles @PathSensitive(RELATIVE) public abstract org.gradle.api.provider.SetProperty<@NonNull org.gradle.api.file.RegularFile> getFileAssociations() -
getInstallDir
@Optional @InputDirectory @PathSensitive(RELATIVE) public abstract org.gradle.api.file.DirectoryProperty getInstallDir() -
getLicenseFile
@Optional @InputFile @PathSensitive(RELATIVE) public abstract org.gradle.api.file.RegularFileProperty getLicenseFile()Path to the license file (absolute path or relative to the current directory) -
getResourceDir
@Optional @InputDirectory @PathSensitive(RELATIVE) public abstract org.gradle.api.file.DirectoryProperty getResourceDir()Path to override jpackage resources Icons, template files, and other resources of jpackage can be over-ridden by adding replacement resources to this directory. (absolute path or relative to the current directory) -
getLauncherAsService
@Optional @Input public abstract org.gradle.api.provider.Property<@NonNull Boolean> getLauncherAsService()Request to create an installer that will register the main application launcher as a background service-type application. -
jpackage
protected void jpackage()
-