ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rahamim, Zvi (Zvi)" <zraha...@avaya.com>
Subject RE: Perform a task according to property value
Date Mon, 08 Apr 2002 02:43:36 GMT
This is not what I've ment, sorry for not explaining right:

The situation is like this:
I have a property: p that its value can be a, b or c.
If it is a, I want to call to target "A"
If it is b, I want to call to target "B"
If it is c, I want to call to target "C"
How can I do it?

Zvi 


-----Original Message-----
From: Adam Murdoch [mailto:adammurdoch@apache.org]
Sent: Monday, April 08, 2002 1:06 AM
To: Ant Users List
Subject: Re: Perform a task according to property value


On Mon, 8 Apr 2002 00:00, Rahamim, Zvi (Zvi) wrote:
> Hi!
> I want to call a task according to a property value.
> Can you give me an example?
> Thanks!

You can't call individual tasks based on a property value.  However, you can 
call targets using the <antcall> and <ant> tasks:

http://jakarta.apache.org/ant/manual/CoreTasks/antcall.html

-- 
Adam

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


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


Mime
View raw message