howard,
while there isn't a specific plugin to do all of that... if you look at the
gradle source, there are examples that are close to what you are looking for in
the website sub-project. what you are looking for is this in the build.gradle
file:
task uploadHtml(dependsOn: html, type: Scp) {
...
sourceDir = buildWebsiteDir
host = 'gradle01.managed.contegix.com'
userName = project.hasProperty('websiteScpUserName') ?
project.websiteScpUserName : null
password = project.hasProperty('websiteScpUserPassword') ?
project.websiteScpUserPassword : null
}
task linkCurrent(type: SshExec, dependsOn: configureReleases) {
configureReleases.doLast {
linkCurrent.commandLine('rm', '-f', "${remoteLocations.scpDir}/current"
as String)
linkCurrent.commandLine('ln', '-s',
"${remoteLocations.webRootDir}/${releases[0].remoteDir}" as String,
"${remoteLocations.scpDir}/current" as String)
}
...
}
Ken Sipe | [email protected] | blog: http://kensipe.blogspot.com
On Jun 9, 2011, at 8:00 PM, Howard Lewis Ship wrote:
> Maven has the ability to take JavaDoc, archive it in a .tar file,
> upload it to a remove site via SSH, then send a command via SSH to
> unpackage the .tar file. Is there an equivalent for Gradle?
>
> --
> Howard M. Lewis Ship
>
> Creator of Apache Tapestry
>
> The source for Tapestry training, mentoring and support. Contact me to
> learn how I can get you up and productive in Tapestry fast!
>
> (971) 678-5210
> http://howardlewisship.com
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
> http://xircles.codehaus.org/manage_email
>
>
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email