Gradle changed uploadDocumentation rsync url and port

This commit is contained in:
Andrea Boriero 2022-04-11 11:04:11 +02:00 committed by Yoann Rodière
parent 4423962cea
commit 5ec54232a0
2 changed files with 2 additions and 2 deletions

View File

@ -41,7 +41,7 @@ public class DocumentationPublishing {
.convention( project.getLayout().getBuildDirectory().dir( "documentation" ) );
docServerUrl = project.getObjects()
.property( String.class )
.convention( "filemgmt.jboss.org:/docs_htdocs/hibernate/orm" );
.convention( "filemgmt-prod-sync.jboss.org:/docs_htdocs/hibernate/orm" );
updatedJsonFile = project.getObjects()
.fileProperty()

View File

@ -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( "-avz", "--links", stagingDirPath, url );
exec.args("--port=2222", "-avz", "--links", stagingDirPath, url );
} );
getProject().getLogger().lifecycle( "Done uploading documentation - {}", result.getExitValue() == 0 ? "success" : "failure" );
}