jpyork wrote:
This is the start of the target I use:<target name="deploy_War" description = "Copy war file to environment"> <scp file="../../../../../Builds/test/abc-${buildVersion}.war" todir="${scp.url}" trust="true"/><sshexec host="${host.autodeploy}" trust="true"username="${host.autodeploy.username}" password="${host.autodeploy.pw}" output="deploy.log" append="true"command="cd; echo 'Starting Deployment';cd '/test/home/asadmin'; echo 'Triggering Deployment script on Server'; /opt/SUNWappserver/bin/asant -DbuildVersion=${buildVersion} -buildfile deploy_build.xml;
I would set failonerror="true" for sshexec, so that the return code isnt ignored.
-- Steve Loughran http://www.1060.org/blogxter/publish/5 Author: Ant in Action http://antbook.org/ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
