Package org.gradle.tooling.model
Interface Launchable
- All Superinterfaces:
- ProjectModel
- All Known Subinterfaces:
- GradleTask,- Task,- TaskSelector
Represents an object that can be used to launch a Gradle build, such as a task.
 
To launch a build, you pass one or more Launchable instances
 to either BuildLauncher.forTasks(Iterable) or BuildLauncher.forLaunchables(Iterable).
- Since:
- 1.12
- 
Method SummaryModifier and TypeMethodDescriptionReturns the description of this launchable, ornullif it has no description.Returns a human-consumable display name for this launchable.Returns the identifier for the Gradle project that this model originated from.booleanisPublic()Returns whether launchable is public or not.
- 
Method Details- 
getProjectIdentifierProjectIdentifier getProjectIdentifier()Returns the identifier for the Gradle project that this model originated from.- Specified by:
- getProjectIdentifierin interface- ProjectModel
- Since:
- 2.13
 
- 
getDisplayNameString getDisplayName()Returns a human-consumable display name for this launchable.- Returns:
- Display name of this launchable.
- Since:
- 1.12
 
- 
getDescriptionReturns the description of this launchable, ornullif it has no description.- Returns:
- The description of this launchable, or nullif it has no description.
- Since:
- 1.12
 
- 
isPublicboolean isPublic()Returns whether launchable is public or not. A public launchable is one that is considered a public 'entry point' to the build, that is interesting for an end user of the build to run.- Returns:
- Public property.
- Since:
- 2.1
 
 
-