ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Ashby <ant-u...@cashby.me.uk>
Subject Re: fail if a property ( p4.needsresolve ) is set
Date Wed, 18 Aug 2004 19:33:10 GMT
> I want my ant target to fail if a given property is set. to be more
> precise, I want my target to fail if my last submit to my perforce-depot
> has failed because a file needed to be resolved. In that case i can see
> that a file needed to resolve because the property 'p4.needsresolve' is
> set to 1.
>
> What i had in mind was the following:
>
> 		<fail message="Submit failed! Either one or both of the files
> 'ARMVer.h' and 'gen_version.h need to be resolved before submission.'"
> if="p4.needsresolve" />

Look at ant-contrib.sourceforge.net and the 'if' task...

Christian Ashby
Spiralinks, Inc.

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


Mime
View raw message