mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-10-27 03:25:21 +00:00
Consistent indentation with spaces rather than tabs (#6147)
This commit is contained in:
1 parent
0303e31890
commit
02eecd8a49
26 files changed
+420
-417
No files matched your search
@@ -2364,9 +2364,9 @@ public final class FilePath implements SerializableOnlyOverRemoting {
|
||||
* be on the some host
|
||||
*/
|
||||
public void renameTo(final FilePath target) throws IOException, InterruptedException {
|
||||
if(this.channel != target.channel) {
|
||||
throw new IOException("renameTo target must be on the same host");
|
||||
}
|
||||
if(this.channel != target.channel) {
|
||||
throw new IOException("renameTo target must be on the same host");
|
||||
}
|
||||
act(new RenameTo(target));
|
||||
}
|
||||
private static class RenameTo extends MasterToSlaveFileCallable<Void> {
|
||||
@@ -2695,14 +2695,14 @@ public final class FilePath implements SerializableOnlyOverRemoting {
|
||||
}
|
||||
}
|
||||
private boolean tryCopyWithAttributes(File f, Path targetPath) {
|
||||
try {
|
||||
try {
|
||||
Files.copy(fileToPath(f), targetPath,
|
||||
StandardCopyOption.COPY_ATTRIBUTES, StandardCopyOption.REPLACE_EXISTING);
|
||||
} catch (IOException e) {
|
||||
LOGGER.log(Level.FINE, "Unable to copy: {0}", e.getMessage());
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
return true;
|
||||
}
|
||||
@Override
|
||||
public boolean understandsSymlink() {
|
||||
|
||||
Reference in new issue
Block a user