org.gradle.api.internal.file.copy.CopyAction Java Examples

The following examples show how to use org.gradle.api.internal.file.copy.CopyAction. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: Copy.java    From pushfish-android with BSD 2-Clause "Simplified" License 5 votes vote down vote up
@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));
}
 
Example #2
Source File: Copy.java    From pushfish-android with BSD 2-Clause "Simplified" License 5 votes vote down vote up
@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));
}
 
Example #3
Source File: Copy.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 5 votes vote down vote up
@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));
}
 
Example #4
Source File: Copy.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 5 votes vote down vote up
@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));
}
 
Example #5
Source File: Tar.java    From pushfish-android with BSD 2-Clause "Simplified" License 4 votes vote down vote up
@Override
protected CopyAction createCopyAction() {
    return new TarCopyAction(getArchivePath(), getCompressor());
}
 
Example #6
Source File: Tar.java    From pushfish-android with BSD 2-Clause "Simplified" License 4 votes vote down vote up
@Override
protected CopyAction createCopyAction() {
    return new TarCopyAction(getArchivePath(), getCompressor());
}
 
Example #7
Source File: LombokJarTask.java    From gradle-plugins with MIT License 4 votes vote down vote up
@Override
@Nonnull
protected final CopyAction createCopyAction() {
    throw new UnsupportedOperationException();
}
 
Example #8
Source File: Cpio.java    From gradle-plugins with MIT License 4 votes vote down vote up
@Override
protected CopyAction createCopyAction() {
    return this::execute;
}
 
Example #9
Source File: Ar.java    From gradle-plugins with MIT License 4 votes vote down vote up
@Override
protected CopyAction createCopyAction() {
    return this::execute;
}
 
Example #10
Source File: SevenZip.java    From gradle-plugins with MIT License 4 votes vote down vote up
@Override
protected CopyAction createCopyAction() {
    return this::execute;
}
 
Example #11
Source File: LombokJarTask.java    From gradle-plugins with MIT License 4 votes vote down vote up
@Override
@Nonnull
protected final CopyAction createCopyAction() {
    throw new UnsupportedOperationException();
}
 
Example #12
Source File: Cpio.java    From gradle-plugins with MIT License 4 votes vote down vote up
@Override
protected CopyAction createCopyAction() {
    return this::execute;
}
 
Example #13
Source File: Ar.java    From gradle-plugins with MIT License 4 votes vote down vote up
@Override
protected CopyAction createCopyAction() {
    return this::execute;
}
 
Example #14
Source File: SevenZip.java    From gradle-plugins with MIT License 4 votes vote down vote up
@Override
protected CopyAction createCopyAction() {
    return this::execute;
}
 
Example #15
Source File: Tar.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 4 votes vote down vote up
@Override
protected CopyAction createCopyAction() {
    return new TarCopyAction(getArchivePath(), getCompressor());
}
 
Example #16
Source File: Tar.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 4 votes vote down vote up
@Override
protected CopyAction createCopyAction() {
    return new TarCopyAction(getArchivePath(), getCompressor());
}