Re: Overwrite Property at runtime

2008-01-24 Thread Chuck Holzwarth
The vars override the property for the current target and antcall targets. I have seen something about using callback to call and allow var changes to come back but haven't tried it. So, if you use vars to override existing properties make sure you watch the scope of usage. The var can disappear

Re: Overwrite Property at runtime

2008-01-24 Thread Gilbert Rebhan
Hi, > I would recommend using ant-contrib's and logic to overwrite > properties and dynamically assign the values you need to implement your > solution: http://ant-contrib.sourceforge.net/tasks/tasks/index.html normally properties in ant are immutable once set, but you may always use the ant a

RE: Overwrite Property at runtime

2008-01-24 Thread James Oltmans
Sent: Thursday, January 24, 2008 9:05 AM To: user@ant.apache.org Subject: RE: Overwrite Property at runtime Hi Barry, Thanks for the response. Since it's not a ANT releated property, I done think providing an option of -DPROP_VALUE from cmd prompt would work. Also, I cant afford to

RE: Overwrite Property at runtime

2008-01-24 Thread Sumit.Srivastava
fined inside a java file, and it needs to be manipulated by ANT. Let me know if i have not made myself clear enough. ~Sumit -Original Message- From: Barry Andreasen [mailto:[EMAIL PROTECTED] Sent: Thursday, January 24, 2008 4:51 AM To: Ant Users List Subject: RE: Overwrite Property at ru

RE: Overwrite Property at runtime

2008-01-24 Thread Barry Andreasen
There are several ways to accomplish this depending on your workflow and process requirements. You could do this with the -D= command parameter (passing the runtime value in from the ant commandline). Another option is to use the element to prompt the user for a dynamic value. For example: