Class AbstractContinuousExec
- java.lang.Object
-
- org.gradle.api.internal.AbstractTask
-
- org.gradle.api.DefaultTask
-
- io.github.bennofs.gradle.continuous.AbstractContinuousExec
-
- All Implemented Interfaces:
java.lang.Comparable<org.gradle.api.Task>,org.gradle.api.internal.DynamicObjectAware,org.gradle.api.internal.TaskInternal,org.gradle.api.plugins.ExtensionAware,org.gradle.api.Task,org.gradle.util.Configurable<org.gradle.api.Task>
- Direct Known Subclasses:
ContinuousJavaExec
public abstract class AbstractContinuousExec extends org.gradle.api.DefaultTaskA continuous exec task extends the standard Exec task from gradle with the ability to react to changes in a continuous build. The task starts a process in the background. The process the communicates over a simple protocol via stdin and stdout. For a description of the wire protocol, seeContinuousExecSpec. Subclasses specify how to spawn the process. See for exampleContinuousJavaExecfor spawning a java task.
-
-
Constructor Summary
Constructors Constructor Description AbstractContinuousExec(org.gradle.deployment.internal.DeploymentRegistry deploymentRegistry)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecute(org.gradle.work.InputChanges changes)org.gradle.api.file.ConfigurableFileCollectiongetWatch()Configure the paths that are watched for changes.-
Methods inherited from class 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, property, setActions, setDependsOn, setDescription, setDidWork, setEnabled, setFinalizedBy, setGroup, setMustRunAfter, setOnlyIf, setOnlyIf, setProperty, setShouldRunAfter, shouldRunAfter, usesService
-
Methods inherited from class org.gradle.api.internal.AbstractTask
appendParallelSafeAction, getAsDynamicObject, getConvention, getIdentityPath, getImpliesSubProjects, getOnlyIf, getRequiredServices, getServices, getSharedResources, getStandardOutputCapture, getTaskActions, getTaskIdentity, getTemporaryDirFactory, hasTaskActions, injectIntoNewInstance, isEnabled, isHasCustomActions, prependParallelSafeAction, replaceLogger, setImpliesSubProjects
-
-
-
-
Method Detail
-
execute
public void execute(org.gradle.work.InputChanges changes) throws java.lang.InterruptedException- Throws:
java.lang.InterruptedException
-
getWatch
@InputFiles @Incremental public org.gradle.api.file.ConfigurableFileCollection getWatch()
Configure the paths that are watched for changes. Only paths that are contained in the file collection will be passed as "changed files" to the process. Directories in this collection are watched recursively.- Returns:
- Collection of watched files and directories
-
-