You can use the <var> task of AntContrib or using <script> and project.setProperty() to override an existing one.
BUT you should think about your buildfile: the buildfile should describe your build process on a higher level than if-that-is-true-do-this-else-that-and-in-case-of-... Keep in mind that Ant is not a functional programming language - never designed for that :-) Jan > -----Urspr�ngliche Nachricht----- > Von: James Fuller [mailto:[EMAIL PROTECTED] > Gesendet am: Freitag, 25. Februar 2005 15:45 > An: Ant Users List > Betreff: Re: ant property > > Rajiv Jaitly wrote: > > >++++++++++++++++++++++++++++++++++++++++++++++++++++++++ > >Please read the disclaimer at the bottom of this e-mail. > >++++++++++++++++++++++++++++++++++++++++++++++++++++++++ > > > >Hi, > > > >Is there any was in Ant to reset (assign a new value) a > property that was set previously ? As i understand ant > properties are immutable, I do not want to set up a new > property name every time i want to change the value. > > > > > maybe you could briefly describe your specific scenario....we > might be > able to suggest a solution with immutable properties that in the long > run is perhaps more applicable.... > > gl, Jim Fuller > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] >
