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;








Toomey, Kevin H (ATS, IT) wrote:
> 
> Can you give an example of how the first script is calling the second? Are
> you using <ant>, or <antcall>, or <excec>, or something else?
> 
> -----Original Message-----
> From: jpyork [mailto:[EMAIL PROTECTED]
> Sent: Monday, January 21, 2008 11:58 AM
> To: user@ant.apache.org
> Subject: Halt Ant script question
> 
> 
> 
> I am running 2 scripts and my problem is when the first script runs and
> the
> calls the 2nd one, sometimes the 2nd one will fail and that does not cause
> my 1st one to fail.  
> 
> I am looking for a way to have my main script halt/fail if the 2nd script
> does not work.  What is the task to do this?
> -- 
> View this message in context:
> http://www.nabble.com/Halt-Ant-script-question-tp15001659p15001659.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]
> 
> 
> 
> *************************************************************************
> This communication, including attachments, is
> for the exclusive use of addressee and may contain proprietary,
> confidential and/or privileged information.  If you are not the intended
> recipient, any use, copying, disclosure, dissemination or distribution is
> strictly prohibited.  If you are not the intended recipient, please notify
> the sender immediately by return e-mail, delete this communication and
> destroy all copies.
> *************************************************************************
> 
> 
> ---------------------------------------------------------------------
> 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-tp15001659p15003355.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]

Reply via email to