Java Code Examples for org.gradle.api.file.FileCopyDetails#setRelativePath()

The following examples show how to use org.gradle.api.file.FileCopyDetails#setRelativePath() . 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: StartScriptsMutator.java    From gradle-modules-plugin with MIT License 4 votes vote down vote up
private void updateRelativePath(FileCopyDetails fileCopyDetails) {
    RelativePath updatedRelativePath = fileCopyDetails.getRelativePath().getParent().getParent()
            .append(true, "patchlibs", fileCopyDetails.getName());
    fileCopyDetails.setRelativePath(updatedRelativePath);
}
 
Example 2
Source File: RenamingCopyAction.java    From pushfish-android with BSD 2-Clause "Simplified" License 4 votes vote down vote up
public void execute(FileCopyDetails fileCopyDetails) {
    RelativePath path = fileCopyDetails.getRelativePath();
    path = path.replaceLastName(transformer.transform(path.getLastName()));
    fileCopyDetails.setRelativePath(path);
}
 
Example 3
Source File: RenamingCopyAction.java    From pushfish-android with BSD 2-Clause "Simplified" License 4 votes vote down vote up
public void execute(FileCopyDetails fileCopyDetails) {
    RelativePath path = fileCopyDetails.getRelativePath();
    path = path.replaceLastName(transformer.transform(path.getLastName()));
    fileCopyDetails.setRelativePath(path);
}
 
Example 4
Source File: LibraryCache.java    From javaide with GNU General Public License v3.0 4 votes vote down vote up
private static <Value extends RelativePath> Value setRelativePath(FileCopyDetails propOwner, Value var1) {
    propOwner.setRelativePath(var1);
    return var1;
}
 
Example 5
Source File: RenamingCopyAction.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 4 votes vote down vote up
public void execute(FileCopyDetails fileCopyDetails) {
    RelativePath path = fileCopyDetails.getRelativePath();
    path = path.replaceLastName(transformer.transform(path.getLastName()));
    fileCopyDetails.setRelativePath(path);
}
 
Example 6
Source File: RenamingCopyAction.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 4 votes vote down vote up
public void execute(FileCopyDetails fileCopyDetails) {
    RelativePath path = fileCopyDetails.getRelativePath();
    path = path.replaceLastName(transformer.transform(path.getLastName()));
    fileCopyDetails.setRelativePath(path);
}