Java 类org.gradle.api.internal.file.copy.CopyAction 实例源码

项目:Reer    文件:Copy.java   
@Override
protected CopyAction createCopyAction() {
    File destinationDir = getDestinationDir();
    if (destinationDir == null) {
        throw new InvalidUserDataException("No copy destination directory has been specified, use 'into' to specify a target directory.");
    }
    return new FileCopyAction(getFileLookup().getFileResolver(destinationDir));
}
项目:Reer    文件:AbstractCopyTask.java   
@TaskAction
protected void copy() {
    Instantiator instantiator = getInstantiator();
    FileSystem fileSystem = getFileSystem();

    CopyActionExecuter copyActionExecuter = new CopyActionExecuter(instantiator, fileSystem);
    CopyAction copyAction = createCopyAction();
    WorkResult didWork = copyActionExecuter.execute(rootSpec, copyAction);
    setDidWork(didWork.getDidWork());
}
项目:Reer    文件:Sync.java   
@Override
protected CopyAction createCopyAction() {
    File destinationDir = getDestinationDir();
    if (destinationDir == null) {
        throw new InvalidUserDataException("No copy destination directory has been specified, use 'into' to specify a target directory.");
    }
    return new SyncCopyActionDecorator(destinationDir, new FileCopyAction(getFileLookup().getFileResolver(destinationDir)), preserveInDestination);
}
项目:Pushjet-Android    文件:Copy.java   
@Override
protected CopyAction createCopyAction() {
    File destinationDir = getDestinationDir();
    if (destinationDir == null) {
        throw new InvalidUserDataException("No copy destination directory has been specified, use 'into' to specify a target directory.");
    }
    return new FileCopyAction(getFileLookup().getFileResolver(destinationDir));
}
项目:Pushjet-Android    文件:Copy.java   
@Override
protected CopyAction createCopyAction() {
    File destinationDir = getDestinationDir();
    if (destinationDir == null) {
        throw new InvalidUserDataException("No copy destination directory has been specified, use 'into' to specify a target directory.");
    }
    return new FileCopyAction(getServices().get(FileLookup.class).getFileResolver(destinationDir));
}
项目:Reer    文件:Zip.java   
@Override
protected CopyAction createCopyAction() {
    DocumentationRegistry documentationRegistry = getServices().get(DocumentationRegistry.class);
    return new ZipCopyAction(getArchivePath(), getCompressor(), documentationRegistry, metadataCharset);
}
项目:Reer    文件:Tar.java   
@Override
protected CopyAction createCopyAction() {
    return new TarCopyAction(getArchivePath(), getCompressor());
}
项目:Pushjet-Android    文件:Tar.java   
@Override
protected CopyAction createCopyAction() {
    return new TarCopyAction(getArchivePath(), getCompressor());
}
项目:Pushjet-Android    文件:Tar.java   
@Override
protected CopyAction createCopyAction() {
    return new TarCopyAction(getArchivePath(), getCompressor());
}
项目:gradle-gzjar-plugin    文件:GzJar.java   
@Override
protected CopyAction createCopyAction() {
    return new GzJarCopyAction(getArchivePath());
}
项目:jarjar    文件:JarjarArchiveTask.java   
@Override
protected CopyAction createCopyAction() {
    DocumentationRegistry documentationRegistry = getServices().get(DocumentationRegistry.class);
    return new JarjarCopyAction(getArchivePath(), getCompressor(), documentationRegistry);
}
项目:bazel    文件:JarjarArchiveTask.java   
@Override
protected CopyAction createCopyAction() {
    DocumentationRegistry documentationRegistry = getServices().get(DocumentationRegistry.class);
    return new JarjarCopyAction(getArchivePath(), getCompressor(), documentationRegistry);
}
项目:Reer    文件:AbstractCopyTask.java   
protected abstract CopyAction createCopyAction();