ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jon Madison" <...@tfftech.com>
Subject Re: How to stop Ant if CVS task fail?
Date Fri, 11 Jul 2003 19:51:22 GMT
in general, any task should support failonerror flag.

j.

----- Original Message ----- 
From: "DDU DUQUENNOY Didier" <dduquennoy@sofaxis.com>
To: "'Ant Users List'" <user@ant.apache.org>
Sent: Friday, July 11, 2003 7:52 AM
Subject: RE: How to stop Ant if CVS task fail?


That works, thanks.
'failonerror' was not listed in the ant documentation for cvs task, so I
didn't though about it.

Didier D

> -----Message d'origine-----
> De : Jan.Materne@rzf.fin-nrw.de [mailto:Jan.Materne@rzf.fin-nrw.de]
>
> Hmm, I donĀ“t know <cvs>, but 'failonerror' attribute sounds well ...
>
> Jan
> > -----Original Message-----
> > From: DDU DUQUENNOY Didier [mailto:dduquennoy@sofaxis.com]
> >
> > 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



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message