DevCloud: Make sure destination paths exists before scp

Makes dirs if they are not present before scp-ing target/ and dist/ to
devcloud.

Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
This commit is contained in:
Rohit Yadav 2012-10-16 21:38:05 +05:30
parent 6c6d9bb89f
commit 53a3c2f171
1 changed files with 2 additions and 0 deletions

View File

@ -80,12 +80,14 @@
</scp>
<echo message="copying target folder to remote"/>
<sshexec trust="yes" host="${host}" port="${port}" username="root" password="password" command="cd /opt/cloudstack/incubator-cloudstack; mkdir -p target"/>
<scp trust="yes" port="${port}" todir="root:password@${host}:/opt/cloudstack/incubator-cloudstack/target">
<fileset dir="target">
</fileset>
</scp>
<echo message="copying dist folder to remote"/>
<sshexec trust="yes" host="${host}" port="${port}" username="root" password="password" command="cd /opt/cloudstack/incubator-cloudstack; mkdir -p dist"/>
<scp trust="yes" port="${port}" todir="root:password@${host}:/opt/cloudstack/incubator-cloudstack/dist">
<fileset dir="dist">
</fileset>