mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-16 16:15:06 +00:00
Gradle changed uploadDocumentation rsync url and port
This commit is contained in:
parent
4423962cea
commit
5ec54232a0
@ -41,7 +41,7 @@ public DocumentationPublishing(Project project) {
|
||||
.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()
|
||||
|
@ -58,7 +58,7 @@ public void uploadDocumentation() {
|
||||
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" );
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user