Class 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 Detail

      • InstallExecutable

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

      • 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.
      • getSourceFile

        @Internal("Covered by inputFileIfExists")
        public RegularFileProperty getSourceFile()
        The executable file to install.
        Since:
        4.1
      • 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()