@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)); }
@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()); }
@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); }
@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)); }
@Override protected CopyAction createCopyAction() { DocumentationRegistry documentationRegistry = getServices().get(DocumentationRegistry.class); return new ZipCopyAction(getArchivePath(), getCompressor(), documentationRegistry, metadataCharset); }
@Override protected CopyAction createCopyAction() { return new TarCopyAction(getArchivePath(), getCompressor()); }
@Override protected CopyAction createCopyAction() { return new GzJarCopyAction(getArchivePath()); }
@Override protected CopyAction createCopyAction() { DocumentationRegistry documentationRegistry = getServices().get(DocumentationRegistry.class); return new JarjarCopyAction(getArchivePath(), getCompressor(), documentationRegistry); }
protected abstract CopyAction createCopyAction();