From 5ec54232a06078dc0e874fdfcddd41f713dc2861 Mon Sep 17 00:00:00 2001 From: Andrea Boriero Date: Mon, 11 Apr 2022 11:04:11 +0200 Subject: [PATCH] Gradle changed uploadDocumentation rsync url and port --- .../java/org/hibernate/orm/docs/DocumentationPublishing.java | 2 +- .../src/main/java/org/hibernate/orm/docs/PublishTask.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hibernate-orm-build/src/main/java/org/hibernate/orm/docs/DocumentationPublishing.java b/hibernate-orm-build/src/main/java/org/hibernate/orm/docs/DocumentationPublishing.java index 1db2152604..17b826120b 100644 --- a/hibernate-orm-build/src/main/java/org/hibernate/orm/docs/DocumentationPublishing.java +++ b/hibernate-orm-build/src/main/java/org/hibernate/orm/docs/DocumentationPublishing.java @@ -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() diff --git a/hibernate-orm-build/src/main/java/org/hibernate/orm/docs/PublishTask.java b/hibernate-orm-build/src/main/java/org/hibernate/orm/docs/PublishTask.java index c68c7ded44..1256bf23f5 100644 --- a/hibernate-orm-build/src/main/java/org/hibernate/orm/docs/PublishTask.java +++ b/hibernate-orm-build/src/main/java/org/hibernate/orm/docs/PublishTask.java @@ -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" ); }