> <sshexec failonerror="true"
> host="${host.autodeploy}"
trust="true"
> username="${host.autodeploy.username}"
> password="${host.autodeploy.pw}"
> output="deploy.log"
> append="true"
> command="cd;
So I changed the script to the above, I also moved the failonerror th the
end of the sshexec tag and I am still getting failed on the 2nd script, but
the overall script is still coming back succeseful...am I putting the
failonerror in the wrong place?
Steve Loughran wrote:
>
> 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]
>
>
>
--
View this message in context:
http://www.nabble.com/Halt-Ant-script-question-tp15001659p15023053.html
Sent from the Ant - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]