well the coffee worked.... i'm happy to hear that it will be in in ant 2 :-D (see i'm smiling) thats the main point it works with my as it is (ugly) and i understand your point still it gets ugly to first the user has to comment stuff in for some task to let it work and others comment in to make it stop and the programmer has to change if to unless and rename the propertie if he wants to change the default...
well i try to be patient and wait for antII tibi > -----Original Message----- > From: Diane Holt [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, August 21, 2002 5:16 PM > To: Ant Users List > Subject: RE: target ifTrue > > > --- Tibor Strausz <[EMAIL PROTECTED]> wrote: > > and if i want to overwrite them in my.props > > the problem is when i use if in a target it only checks if > the property > > exists so i can never overwirte it. > > Sorry, I hadn't had my coffee before I answered that :) I should have > said, "So for those, have my.properties define an > "include.<target_name>" > and 'if' on those in <target> (since the default is for them > to not run -- > iow, accommodate whatever the default is). > > > Whay is it that there is not a <target ifTrue=${prop}> [...] > > It should be available with Ant2. In the meantime, you can > either have a > modified Target.java (I did for a long time, in order to > allow if/unless > to do a test-for-equality), work around it with <condition>, > or <script>, > or setting things up to not need it (like having a default). > > Diane > > ===== > ([EMAIL PROTECTED]) > > > > __________________________________________________ > Do You Yahoo!? > HotJobs - Search Thousands of New Jobs > http://www.hotjobs.com > > -- > To unsubscribe, e-mail: > <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: > <mailto:[EMAIL PROTECTED]> > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
