Search in sources :

Example 1 with CopyActionExecuter

use of org.gradle.api.internal.file.copy.CopyActionExecuter in project gradle by gradle.

the class AbstractCopyTask method createCopyActionExecuter.

protected CopyActionExecuter createCopyActionExecuter() {
    Instantiator instantiator = getInstantiator();
    FileSystem fileSystem = getFileSystem();
    return new CopyActionExecuter(instantiator, getObjectFactory(), fileSystem, false, getDocumentationRegistry());
}
Also used : FileSystem(org.gradle.internal.nativeintegration.filesystem.FileSystem) Instantiator(org.gradle.internal.reflect.Instantiator) CopyActionExecuter(org.gradle.api.internal.file.copy.CopyActionExecuter)

Example 2 with CopyActionExecuter

use of org.gradle.api.internal.file.copy.CopyActionExecuter in project gradle by gradle.

the class AbstractCopyTask method copy.

@TaskAction
protected void copy() {
    CopyActionExecuter copyActionExecuter = createCopyActionExecuter();
    CopyAction copyAction = createCopyAction();
    WorkResult didWork = copyActionExecuter.execute(rootSpec, copyAction);
    setDidWork(didWork.getDidWork());
}
Also used : CopyAction(org.gradle.api.internal.file.copy.CopyAction) CopyActionExecuter(org.gradle.api.internal.file.copy.CopyActionExecuter)

Example 3 with CopyActionExecuter

use of org.gradle.api.internal.file.copy.CopyActionExecuter in project gradle by gradle.

the class AbstractArchiveTask method createCopyActionExecuter.

@Override
protected CopyActionExecuter createCopyActionExecuter() {
    Instantiator instantiator = getInstantiator();
    FileSystem fileSystem = getFileSystem();
    return new CopyActionExecuter(instantiator, getObjectFactory(), fileSystem, isReproducibleFileOrder(), getDocumentationRegistry());
}
Also used : FileSystem(org.gradle.internal.nativeintegration.filesystem.FileSystem) Instantiator(org.gradle.internal.reflect.Instantiator) CopyActionExecuter(org.gradle.api.internal.file.copy.CopyActionExecuter)

Aggregations

CopyActionExecuter (org.gradle.api.internal.file.copy.CopyActionExecuter)3 FileSystem (org.gradle.internal.nativeintegration.filesystem.FileSystem)2 Instantiator (org.gradle.internal.reflect.Instantiator)2 CopyAction (org.gradle.api.internal.file.copy.CopyAction)1