Package org.gradle.api.tasks
Klasse GradleBuild
java.lang.Object
org.gradle.api.internal.AbstractTask
org.gradle.api.DefaultTask
org.gradle.api.internal.ConventionTask
org.gradle.api.tasks.GradleBuild
- Alle implementierten Schnittstellen:
Comparable<Task>,org.gradle.api.internal.DynamicObjectAware,org.gradle.api.internal.IConventionAware,org.gradle.api.internal.TaskInternal,Named,ExtensionAware,Task,Configurable<Task>
@DisableCachingByDefault(because="Child Gradle build will do its own caching")
public abstract class GradleBuild
extends org.gradle.api.internal.ConventionTask
Executes a Gradle build.
-
Verschachtelte Klassen - Übersicht
Von Schnittstelle geerbte verschachtelte Klassen/Schnittstellen org.gradle.api.Task
Task.Namer -
Feldübersicht
Von Schnittstelle geerbte Felder org.gradle.api.Task
TASK_ACTION, TASK_CONSTRUCTOR_ARGS, TASK_DEPENDS_ON, TASK_DESCRIPTION, TASK_GROUP, TASK_NAME, TASK_OVERWRITE, TASK_TYPE -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungVeraltet.The build name to use for the nested 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) Veraltet.UsesetDir(File)instead to set the root of the nested build.voidsetBuildFile(Object file) Veraltet.UsesetDir(Object)instead to set the root of the nested build.voidsetBuildName(String buildName) Sets build name to use for the nested 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.Von Klasse geerbte Methoden org.gradle.api.internal.ConventionTask
conventionMapping, conventionMapping, getConventionMappingVon Klasse geerbte Methoden org.gradle.api.DefaultTask
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, usesServiceVon Klasse geerbte Methoden org.gradle.api.internal.AbstractTask
acceptServiceReferences, appendParallelSafeAction, doNotTrackState, getAsDynamicObject, getConvention, getIdentityPath, getImpliesSubProjects, getLifecycleDependencies, getOnlyIf, getReasonNotToTrackState, getReasonTaskIsIncompatibleWithConfigurationCache, getRequiredServices, getServices, getSharedResources, getStandardOutputCapture, getTaskActions, getTaskIdentity, getTemporaryDirFactory, hasTaskActions, injectIntoNewInstance, isCompatibleWithConfigurationCache, isEnabled, isHasCustomActions, notCompatibleWithConfigurationCache, prependParallelSafeAction, setImpliesSubProjectsVon Klasse geerbte Methoden java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitVon Schnittstelle geerbte Methoden org.gradle.api.Task
doNotTrackState, getConvention, notCompatibleWithConfigurationCache
-
Konstruktordetails
-
GradleBuild
public GradleBuild()
-
-
Methodendetails
-
getStartParameter
Returns the full set of parameters that will be used to execute the build.- Gibt zurück:
- the parameters. Never returns null.
-
setStartParameter
Sets the full set of parameters that will be used to execute the build.- Parameter:
startParameter- the parameters. Should not be null.
-
getDir
Returns the project directory for the build. Defaults to the project directory.- Gibt zurück:
- The project directory. Never returns null.
-
setDir
Sets the project directory for the build.- Parameter:
dir- The project directory. Should not be null.- Seit:
- 4.0
-
setDir
Sets the project directory for the build.- Parameter:
dir- The project directory. Should not be null.
-
getBuildFile
Veraltet.UsegetDir()instead to get the root of the nested build. This method will be removed in Gradle 9.0.Returns the build file that should be used for this build. Defaults to "build.gradle" in the project directory.- Gibt zurück:
- The build file. May be null.
-
setBuildFile
Veraltet.UsesetDir(File)instead to set the root of the nested build. This method will be removed in Gradle 9.0.Sets the build file that should be used for this build.- Parameter:
file- The build file. May be null to use the default build file for the build.- Seit:
- 4.0
-
setBuildFile
Veraltet.UsesetDir(Object)instead to set the root of the nested build. This method will be removed in Gradle 9.0.Sets the build file that should be used for this build.- Parameter:
file- The build file. May be null to use the default build file for the build.
-
getTasks
Returns the tasks that should be executed for this build.- Gibt zurück:
- The sequence. May be empty. Never returns null.
-
setTasks
Sets the tasks that should be executed for this build.- Parameter:
tasks- The task names. May be empty or null to use the default tasks for the build.- Seit:
- 4.0
-
setTasks
Sets the tasks that should be executed for this build.- Parameter:
tasks- The task names. May be empty or null to use the default tasks for the build.
-
getBuildName
The build name to use for the nested build.If no value is specified, the name of the directory of the build will be used.
- Gibt zurück:
- the build name to use for the nested build (or null if the default is to be used)
- Seit:
- 6.0
-
setBuildName
Sets build name to use for the nested build.- Parameter:
buildName- the build name to use for the nested build- Seit:
- 6.0
-
getDir()instead to get the root of the nested build.