ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nascif Abousalh-Neto"<nas...@nortelnetworks.com>
Subject RE: Failing build on attempted evaluation of undefined properties ?
Date Wed, 20 Mar 2002 09:20:20 GMT
I apologize for not being specific. I mean a target wrapper with an unless
attribute, like this:

  <target name="check-mount-path" unless="mount.path">
    <fail>
ERROR processing ${ant.project.name}: variable "mount.path" undefined!!!
Directory  ${ant.file}

  - Make sure that Ant was called using the appropriate launcher script!!! 
    </fail>
  </target>

> -----Original Message-----
> From: stephan beal [mailto:stephan@einsurance.de]
> Sent: Wednesday, March 20, 2002 4:18 AM
> To: Ant Users List; Abousalh-Neto, Nascif [NCRTP:3X50:EXCH]
> Subject: Re: Failing build on attempted evaluation of undefined
> properties?
> 
> 
> On Tuesday 19 March 2002 21:50 pm, Nascif A. Abousalh Neto wrote:
> > PS: I know I can achive this result by using <fail> tasks 
> with the unless
> > modifiers; but then I have to do it explicitly for every 
> property I use. I
> > don't want to do that.
> 
> Does <fail> support if/unless? If so, it's not in the docs 
> (1.4.1). It would 
> be a nice feature, though.
> 
> -- 
> ----- stephan
> Generic Universal Computer Guy
> stephan@einsurance.de - http://www.einsurance.de
> Office: +49 (89)  552 92 862 Handy:  +49 (179) 211 97 67
> "I ain't gen'rally given to physicality of that nature but it saves
> a lot of arguing." -- Nanny Ogg
> 

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