gradle doc publishing add --delete option to rsync
This commit is contained in:
parent
1bd4d572b4
commit
81d6fef345
|
@ -58,7 +58,7 @@ public abstract class PublishTask extends DefaultTask {
|
|||
getProject().getLogger().lifecycle( "Uploading documentation `{}` -> `{}`", stagingDirPath, url );
|
||||
final ExecResult result = getProject().exec( (exec) -> {
|
||||
exec.executable( "rsync" );
|
||||
exec.args("--port=2222", "-avz", "--links", stagingDirPath, url );
|
||||
exec.args("--port=2222", "-avz", "--links", "--delete", stagingDirPath, url );
|
||||
} );
|
||||
getProject().getLogger().lifecycle( "Done uploading documentation - {}", result.getExitValue() == 0 ? "success" : "failure" );
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue