ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan.Mate...@rzf.fin-nrw.de
Subject RE: How to stop Ant if CVS task fail?
Date Fri, 11 Jul 2003 12:29:25 GMT
Hmm, I donĀ“t know <cvs>, but 'failonerror' attribute sounds well ...


Jan


> -----Original Message-----
> From: DDU DUQUENNOY Didier [mailto:dduquennoy@sofaxis.com]
> Sent: Friday, July 11, 2003 2:30 PM
> To: 'user@ant.apache.org'
> Subject: How to stop Ant if CVS task fail?
> 
> 
> Hi,
> 
> I'm trying to make a Ant script to build my project after 
> checking-out the
> files from CVS.
> My script looks like that:
> 
>     ...
>     <tstamp>
>       <format property="now" pattern="yyyyMMddHHmmssSSS"/>
>     </tstamp>
>     <property name="label" value="ModuleName${now}"/>
>     <cvs cvsRoot="${cvsRoot}"
>          command="checkout -PR"
>          dest="${build.path.sources}"
>          package="MyModule" />
>     <cvs cvsRoot="${cvsRoot}"
>          command="rtag -R ${label}"
>          dest="${build.path.sources}"
>          package="MyModule" />
>     ...
> 
> This part of script checks out my files from CVS to a 
> temporary directory,
> and tags the module with the build-time timestamp. Then I 
> compile the files
> and package them.
> 
> My problem is that I want Ant to interrupt the build if a CVS 
> task fail. For
> example,
> if the tag command fails, Ant doesn't stop and I get a 
> package that hasn't
> been tagged.
> 
> If there a way to do consider CVS task failure as an Ant error?
> 
> Thanks,
> 
> Didier D
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
> 

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message