dcsimg
Using "if" at target tag
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Daniel_L
Posted On:   Thursday, September 6, 2001 06:39 AM

Hi, everyone ! I want to define a new target, but the execution of this target depends on some arguments. I know i can use the following sintax : But i want to new_target execution depends on "first.is.defined", "second.is.defined", and so on... How can i do it ? There are more documentation (with a lot of examples) about ANT (i've just got ANT manual from ANT Installation...) Thanks in advance.    More>>

Hi, everyone !

I want to define a new target, but
the execution of this target
depends on some arguments.



I know i can use the following
sintax :

			



But i want to new_target execution
depends on "first.is.defined",

"second.is.defined", and so on...



How can i do it ?

There are more documentation (with a
lot of examples) about ANT (i've
just got ANT manual from ANT
Installation...)





Thanks in advance.

   <<Less

Re: Using "if" at target tag

Posted By:   Erik_Hatcher  
Posted On:   Thursday, September 6, 2001 08:10 PM

You cannot do more than one property in an 'if' attribute of a tag (it treats the text there as a single property name and tests for its existence).


But it seems that if you have a need to check to properties that you probably are doing something slightly unorthodox and would be better to refactor your build to use the 'depends' attribute on instead, and have an 'if' on each one of those to isolate each one separately.

About | Sitemap | Contact