ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Will Dyke <will.d...@bbc.co.uk>
Subject RE: target if
Date Mon, 08 Oct 2001 09:19:56 GMT
I believe that ant interprets if="x,y" as a
test for whether ${x,y} is set, not whether
${x} and ${y} are both set. 

To test for both x and y, use the condition task to 
set a variable z to true if x and y are true. 
Then use if="z" in your target.

HTH,
Will

> -----Original Message-----
> From: SimonRichardson2@halifax.co.uk
> [mailto:SimonRichardson2@halifax.co.uk]
> Sent: 08 October 2001 09:15
> To: ant-user@jakarta.apache.org
> Subject: target if
> 
> 
> All
>  
> I'm having problems trying to specify more than 1 value in a <target
> name="a" if="x,y">, which I interpret to mean perform target 
> "a" if both "x"
> and "y" are set true.
>  
> However this doesn't appear to work!  I can <target name="a" 
> if="x"> and
> <target name="a" if="y"> but not both simultaneously.  Is 
> this how it works?
> and if so is there a workaround? 
>  
> Simon
> 
> --------------------------------------------------------------
> ----------------
> Halifax plc, Registered in England No. 2367076.  Registered 
> Office: Trinity Road, Halifax, West Yorkshire HX1 2RG. 
> Represents only the Halifax Financial Services Marketing 
> Group for the purposes of advising on and selling life 
> assurance, pensions and unit trust business.  The Marketing 
> Group is regulated by the Personal Investment Authority.  
> Switchboard 01422 333333.
> 
> ==============================================================
> ================
> 


This e-mail, and any attachment, is confidential. If you have received
it in error, please delete it from your system, do not use or disclose
the information in any way, and notify me immediately. The contents of
this message may contain personal views which are not the views of the
BBC, unless specifically stated.

Mime
View raw message