java.lang.Comparable<Task>
, org.gradle.api.internal.DynamicObjectAware
, org.gradle.api.internal.IConventionAware
, org.gradle.api.internal.TaskInternal
, ExtensionAware
, Task
, Configurable<Task>
@DisableCachingByDefault(because="Child Gradle build will do its own caching") public abstract class GradleBuild extends org.gradle.api.internal.ConventionTask
Task.Namer
TASK_ACTION, TASK_CONSTRUCTOR_ARGS, TASK_DEPENDS_ON, TASK_DESCRIPTION, TASK_GROUP, TASK_NAME, TASK_OVERWRITE, TASK_TYPE
Constructor | Description |
---|---|
GradleBuild() |
Modifier and Type | Method | Description |
---|---|---|
java.io.File |
getBuildFile() |
Deprecated.
Use
getDir() instead to get the root of the nested build. |
java.lang.String |
getBuildName() |
The build name to use for the nested build.
|
java.io.File |
getDir() |
Returns the project directory for the build.
|
StartParameter |
getStartParameter() |
Returns the full set of parameters that will be used to execute the build.
|
java.util.List<java.lang.String> |
getTasks() |
Returns the tasks that should be executed for this build.
|
void |
setBuildFile(java.io.File file) |
Deprecated.
Use
setDir(File) instead to set the root of the nested build. |
void |
setBuildFile(java.lang.Object file) |
Deprecated.
Use
setDir(Object) instead to set the root of the nested build. |
void |
setBuildName(java.lang.String buildName) |
Sets build name to use for the nested build.
|
void |
setDir(java.io.File dir) |
Sets the project directory for the build.
|
void |
setDir(java.lang.Object dir) |
Sets the project directory for the build.
|
void |
setStartParameter(StartParameter startParameter) |
Sets the full set of parameters that will be used to execute the build.
|
void |
setTasks(java.util.Collection<java.lang.String> tasks) |
Sets the tasks that should be executed for this build.
|
void |
setTasks(java.util.List<java.lang.String> tasks) |
Sets the tasks that should be executed for this build.
|
conventionMapping, conventionMapping, getConventionMapping
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
appendParallelSafeAction, doNotTrackState, getAsDynamicObject, getConvention, getIdentityPath, getImpliesSubProjects, getLifecycleDependencies, getOnlyIf, getReasonNotToTrackState, getReasonTaskIsIncompatibleWithConfigurationCache, getRequiredServices, getServices, getSharedResources, getStandardOutputCapture, getTaskActions, getTaskIdentity, getTemporaryDirFactory, hasTaskActions, injectIntoNewInstance, isCompatibleWithConfigurationCache, isEnabled, isHasCustomActions, notCompatibleWithConfigurationCache, prependParallelSafeAction, setImpliesSubProjects
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
doNotTrackState, getConvention, notCompatibleWithConfigurationCache
@Internal public StartParameter getStartParameter()
public void setStartParameter(StartParameter startParameter)
startParameter
- the parameters. Should not be null.@Internal public java.io.File getDir()
public void setDir(java.io.File dir)
dir
- The project directory. Should not be null.public void setDir(java.lang.Object dir)
dir
- The project directory. Should not be null.@Nullable @Optional @PathSensitive(NAME_ONLY) @InputFile @Deprecated public java.io.File getBuildFile()
getDir()
instead to get the root of the nested build.
This method will be removed in Gradle 9.0.@Deprecated public void setBuildFile(@Nullable java.io.File file)
setDir(File)
instead to set the root of the nested build.
This method will be removed in Gradle 9.0.file
- The build file. May be null to use the default build file for the build.@Deprecated public void setBuildFile(@Nullable java.lang.Object file)
setDir(Object)
instead to set the root of the nested build.
This method will be removed in Gradle 9.0.file
- The build file. May be null to use the default build file for the build.@Input public java.util.List<java.lang.String> getTasks()
public void setTasks(java.util.List<java.lang.String> tasks)
tasks
- The task names. May be empty or null to use the default tasks for the build.public void setTasks(java.util.Collection<java.lang.String> tasks)
tasks
- The task names. May be empty or null to use the default tasks for the build.@Internal public java.lang.String getBuildName()
If no value is specified, the name of the directory of the build will be used.
public void setBuildName(java.lang.String buildName)
buildName
- the build name to use for the nested build