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>

@CacheableTask public abstract class JpackageTask extends JDKToolTask
  • 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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    abstract org.gradle.api.provider.Property<@NonNull String>
    URL of the application's home page
    org.gradle.api.NamedDomainObjectSet<@NonNull Launcher>
     
    abstract org.gradle.api.file.ConfigurableFileCollection
     
    abstract org.gradle.api.provider.Property<@NonNull String>
    Description of the application
    abstract org.gradle.api.file.DirectoryProperty
    Location of the predefined application image that is used to build an installable package or to sign the predefined application image
    abstract org.gradle.api.provider.Property<@NonNull String>
    Name of the application and/or package
    abstract org.gradle.api.provider.Property<@NonNull String>
    Version of the application and/or package
    abstract org.gradle.api.provider.ListProperty<@NonNull org.gradle.api.file.RegularFile>
    Arg files that contain additional options to be passed to jpackage
    abstract 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 application
    abstract org.gradle.api.file.DirectoryProperty
    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.FileSystemOperations
     
    abstract org.gradle.api.file.RegularFileProperty
    Path of the icon of the application package (absolute path or relative to the current directory)
    abstract org.gradle.api.file.DirectoryProperty
    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.DirectoryProperty
     
    abstract 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.RegularFileProperty
    Path 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.RegularFileProperty
     
    abstract org.gradle.api.provider.Property<@NonNull String>
     
    protected abstract org.gradle.api.model.ObjectFactory
     
    abstract org.gradle.api.provider.Property<@NonNull JpackagePlatformOptions>
     
    abstract org.gradle.api.file.DirectoryProperty
    Path 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.DirectoryProperty
    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.
    abstract org.gradle.api.provider.Property<@NonNull String>
     
    abstract org.gradle.api.provider.Property<@NonNull String>
    Vendor of the application
    abstract org.gradle.api.provider.Property<@NonNull Boolean>
    Enables verbose output
    protected void
     

    Methods inherited from class de.infolektuell.gradle.jpackage.tasks.JDKToolTask

    exec, getExecOperations, getExecutable, getMetadata

    Methods 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, usesService

    Methods 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, setImpliesSubProjects

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods 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

      @Optional @Input public abstract org.gradle.api.provider.Property<@NonNull String> getMainModule()
    • getMainClass

      @Optional @Input public abstract org.gradle.api.provider.Property<@NonNull String> 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

      @Optional @Input public abstract org.gradle.api.provider.Property<@NonNull String> getType()
    • getAppVersion

      @Optional @Input public abstract org.gradle.api.provider.Property<@NonNull String> getAppVersion()
      Version of the application and/or package
    • getCopyright

      @Optional @Input public abstract org.gradle.api.provider.Property<@NonNull String> 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

      @Optional @Input public abstract org.gradle.api.provider.Property<@NonNull String> 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

      @Optional @Input public abstract org.gradle.api.provider.Property<@NonNull String> getVendor()
      Vendor of the application
    • getVerbose

      @Optional @Input public abstract org.gradle.api.provider.Property<@NonNull Boolean> 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

      @Input public org.gradle.api.NamedDomainObjectSet<@NonNull Launcher> 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

      @Optional @Input public abstract org.gradle.api.provider.Property<@NonNull String> 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()