Class GradleBuild
java.lang.Object
org.gradle.api.internal.AbstractTask
org.gradle.api.DefaultTask
org.gradle.api.internal.ConventionTask
org.gradle.api.tasks.GradleBuild
- All Implemented Interfaces:
Comparable<Task>, org.gradle.api.internal.DynamicObjectAware, org.gradle.api.internal.IConventionAware, org.gradle.api.internal.TaskInternal, ExtensionAware, Task, org.gradle.util.Configurable<Task>
public class GradleBuild
extends org.gradle.api.internal.ConventionTask
Executes a Gradle build.
-
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the build file that should be used for this build.getDir()Returns the project directory for the build.Returns the full set of parameters that will be used to execute the build.getTasks()Returns the tasks that should be executed for this build.voidsetBuildFile(File file) Sets the build file that should be used for this build.voidsetBuildFile(Object file) Sets the build file that should be used for this build.voidSets the project directory for the build.voidSets the project directory for the build.voidsetStartParameter(StartParameter startParameter) Sets the full set of parameters that will be used to execute the build.voidsetTasks(Collection<String> tasks) Sets the tasks that should be executed for this build.voidSets the tasks that should be executed for this build.Methods inherited from class org.gradle.api.internal.ConventionTask
conventionMapping, conventionMapping, getConventionMappingMethods 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
-
GradleBuild
public GradleBuild()
-
-
Method Details
-
getStartParameter
Returns the full set of parameters that will be used to execute the build.- Returns:
- the parameters. Never returns null.
-
setStartParameter
Sets the full set of parameters that will be used to execute the build.- Parameters:
startParameter- the parameters. Should not be null.
-
getDir
-
setDir
Sets the project directory for the build.- Parameters:
dir- The project directory. Should not be null.- Since:
- 4.0
-
setDir
Sets the project directory for the build.- Parameters:
dir- The project directory. Should not be null.
-
getBuildFile
Returns the build file that should be used for this build. Defaults to "build.gradle" in the project directory.- Returns:
- The build file. May be null.
-
setBuildFile
Sets the build file that should be used for this build.- Parameters:
file- The build file. May be null to use the default build file for the build.- Since:
- 4.0
-
setBuildFile
Sets the build file that should be used for this build.- Parameters:
file- The build file. May be null to use the default build file for the build.
-
getTasks
-
setTasks
-
setTasks
Sets the tasks that should be executed for this build.- Parameters:
tasks- The task names. May be empty or null to use the default tasks for the build.
-