ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » IBM MQ File Transfer Edition » FTE Stop processing Ant file

Post new topic  Reply to topic
 FTE Stop processing Ant file « View previous topic :: View next topic » 
Author Message
matuwe
PostPosted: Wed Jul 18, 2012 11:37 pm    Post subject: FTE Stop processing Ant file Reply with quote

Master

Joined: 05 Dec 2007
Posts: 296

HI

I am doing scp using cmd in my ant script. Then followed by a rm to delete the file if the scp was successful. I need the rm (delete) not to execude if the scp was unsuccessful.

Is there anyway to get the ant script to terminate if return code is not ZERO?

I thought adding the condition will help

Code:

<condition property="move-failed">
       <not><equals arg1="${change.result}" arg2="0"/></not>
</condition>
Back to top
View user's profile Send private message
matuwe
PostPosted: Thu Jul 19, 2012 3:06 am    Post subject: Reply with quote

Master

Joined: 05 Dec 2007
Posts: 296

K good sttuuffff I got it from one of the samples...


<fail unless="move.failed" message="*** Error message ***"/>
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ File Transfer Edition » FTE Stop processing Ant file
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.