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>
Installs an executable with it's dependent libraries so it can be easily executed.
-
Nested Class Summary
Nested classes/interfaces inherited from interface Task
Task.Namer -
Field Summary
Fields inherited from interface Task
TASK_ACTION, TASK_DEPENDS_ON, TASK_DESCRIPTION, TASK_GROUP, TASK_NAME, TASK_OVERWRITE, TASK_TYPE -
Constructor Summary
ConstructorsConstructorDescriptionInstallExecutable(org.gradle.internal.work.WorkerLeaseService workerLeaseService) Injects aWorkerLeaseServiceinstance. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Deprecated.UsegetSourceFile().protected org.gradle.api.internal.file.FileOperationsprotected org.gradle.internal.nativeintegration.filesystem.FileSystemprotected FileWorkaround for when the task is given an input file that doesn't existThe directory to install files into.getLibs()The library files that should be installed.The platform describing the install target.Returns the script file that can be used to run the install image.Returns the script file that can be used to run the install image.The executable file to install.The tool chain used for linking.voidinstall()voidAdds a set of library files to be installed.voidsetDestinationDir(File destinationDir) Deprecated.voidsetExecutable(File executable) Deprecated.UsegetSourceFile().voidsetLibs(FileCollection libs) voidsetPlatform(NativePlatform platform) voidsetToolChain(ToolChain toolChain) Methods inherited from class DefaultTask
newInputDirectory, newInputFile, newOutputDirectory, newOutputFileMethods inherited from class org.gradle.api.internal.AbstractTask
addValidator, appendParallelSafeAction, compareTo, configure, deleteAllActions, dependsOn, dependsOnTaskDidWork, doFirst, doFirst, doFirst, doLast, doLast, doLast, execute, finalizedBy, getActions, getAnt, getAsDynamicObject, getConvention, getDependsOn, getDescription, getDestroyables, getDidWork, getEnabled, getExecuter, getExtensions, getFinalizedBy, getGroup, getIdentityPath, getImpliesSubProjects, getInputs, getLocalState, getLogger, getLogging, getMustRunAfter, getName, getOnlyIf, getOutputs, getPath, getProject, getServices, getShouldRunAfter, getStandardOutputCapture, getState, getTaskActions, getTaskDependencies, getTemporaryDir, getTemporaryDirFactory, getValidators, hasProperty, injectIntoNewInstance, isEnabled, isHasCustomActions, leftShift, mustRunAfter, onlyIf, onlyIf, prependParallelSafeAction, property, setActions, setDependsOn, setDescription, setDidWork, setEnabled, setExecuter, setFinalizedBy, setGroup, setImpliesSubProjects, setMustRunAfter, setOnlyIf, setOnlyIf, setProperty, setShouldRunAfter, shouldRunAfter, toString
-
Constructor Details
-
InstallExecutable
@Inject public InstallExecutable(org.gradle.internal.work.WorkerLeaseService workerLeaseService) Injects aWorkerLeaseServiceinstance.- Since:
- 4.2
-
-
Method Details
-
getToolChain
-
setToolChain
-
getPlatform
The platform describing the install target. -
setPlatform
-
getInstallDirectory
The directory to install files into.- Since:
- 4.1
-
getDestinationDir
Deprecated.Returns the path to install into. -
setDestinationDir
Deprecated.Sets the path to install into. -
getSourceFile
The executable file to install.- Since:
- 4.1
-
getExecutable
Deprecated.UsegetSourceFile().Returns the executable to be installed. -
setExecutable
Deprecated.UsegetSourceFile().Sets the executable to be installed. -
getInputFileIfExists
Workaround for when the task is given an input file that doesn't exist- Since:
- 4.3
-
getLibs
The library files that should be installed. -
setLibs
-
lib
Adds a set of library files to be installed. The provided libs object is evaluated as perProject.files(Object...). -
getRunScript
-
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()
-
getInstallDirectory().