Gradle changed uploadDocumentation rsync url and port
This commit is contained in:
parent
4423962cea
commit
5ec54232a0
|
@ -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()
|
||||
|
|
|
@ -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" );
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue