Class InstallExecutable

java.lang.Object
org.gradle.api.internal.AbstractTask
org.gradle.api.DefaultTask
org.gradle.nativeplatform.tasks.InstallExecutable
All Implemented Interfaces:
Comparable<Task>, org.gradle.api.internal.DynamicObjectAware, org.gradle.api.internal.TaskInternal, ExtensionAware, Task, org.gradle.util.Configurable<Task>

@Incubating public class InstallExecutable extends DefaultTask
Installs an executable with it's dependent libraries so it can be easily executed.
  • Constructor Details

    • InstallExecutable

      @Inject public InstallExecutable(org.gradle.internal.work.WorkerLeaseService workerLeaseService)
      Injects a WorkerLeaseService instance.
      Since:
      4.2
  • Method Details

    • getToolChain

      @Internal public ToolChain getToolChain()
      The tool chain used for linking.
    • setToolChain

      public void setToolChain(ToolChain toolChain)
    • getPlatform

      public NativePlatform getPlatform()
      The platform describing the install target.
    • setPlatform

      public void setPlatform(NativePlatform platform)
    • getInstallDirectory

      @OutputDirectory public DirectoryProperty getInstallDirectory()
      The directory to install files into.
      Since:
      4.1
    • getDestinationDir

      @Deprecated @Internal public File getDestinationDir()
      Deprecated.
      Returns the path to install into.
    • setDestinationDir

      @Deprecated public void setDestinationDir(File destinationDir)
      Deprecated.
      Sets the path to install into.
    • getSourceFile

      @Internal("Covered by inputFileIfExists") public RegularFileProperty getSourceFile()
      The executable file to install.
      Since:
      4.1
    • getExecutable

      @Deprecated @Internal("Covered by inputFileIfExists") public File getExecutable()
      Deprecated.
      Returns the executable to be installed.
    • setExecutable

      @Deprecated public void setExecutable(File executable)
      Deprecated.
      Sets the executable to be installed.
    • getInputFileIfExists

      @SkipWhenEmpty @Optional @InputFile protected File getInputFileIfExists()
      Workaround for when the task is given an input file that doesn't exist
      Since:
      4.3
    • getLibs

      @InputFiles public FileCollection getLibs()
      The library files that should be installed.
    • setLibs

      public void setLibs(FileCollection libs)
    • lib

      public void lib(Object libs)
      Adds a set of library files to be installed. The provided libs object is evaluated as per Project.files(Object...).
    • getRunScript

      @Internal("covered by getInstallDirectory") public File getRunScript()
      Returns the script file that can be used to run the install image.
    • getRunScriptFile

      @Internal("covered by getInstallDirectory") public Provider<RegularFile> getRunScriptFile()
      Returns the script file that can be used to run the install image.
      Since:
      4.4
    • getFileSystem

      @Inject protected org.gradle.internal.nativeintegration.filesystem.FileSystem getFileSystem()
    • getFileOperations

      @Inject protected org.gradle.api.internal.file.FileOperations getFileOperations()
    • install

      public void install()