Ant For Loop: Looping over Ranges with Step and Over PropertySets

2011-12-08 Thread Steve Amerige
Hi all, In the recent past, I've asked about implementing a "for" loop in Ant. I've wanted something that could iterate over number ranges or propertysets. And, I wanted something that didn't depend on Ant-Contrib 1.0b3. And, I wanted to be able to iterate forwards or backwards with a setta

Can't set proxy for use by Ant

2011-12-08 Thread John Turnbull
I am trying to set the proxy for Ant to use when it needs to download files but I am getting an HTTP 407 (proxy authentication) error when I run Ant. I am using Windows and have set the ANT_OPTS environment variable like: -Dhttp.proxyHost=* -Dhttp.proxyPort=8080 -Dhttp.proxyUser=* -Dhtt

Re: Creating a macrodef dynamically...within beanshell or any scripting language?

2011-12-08 Thread Scot P. Floess
I should mention that doing this will execute just fine as I expect: classname="org.apache.tools.ant.taskdefs.Sequential"/> I just loose that nice macrodef-ish @{param} expansion that I get in both macrodef

Creating a macrodef dynamically...within beanshell or any scripting language?

2011-12-08 Thread Scot P. Floess
All, I have what may seem like a strange question... I was looking through the source for Ant Contrib's ForTask.java... I see it uses MacroDef internally as well as MacroInstance to execute(). I've got a script def that has a child element entitled "sequential" of type org.apache.tools.ant

RE: Use Ant with an arbitrary date

2011-12-08 Thread Emma Burrows
> Ant 1.7.1 has a known bug Thanks, I'm glad to know it wasn't just me. :) I probably can update Ant, but as it's also part of our CMS, I'm nervous about writing scripts against a different version - so I have implemented your suggestion first and I'm glad to confirm that it's working now. :)

Re: Use Ant with an arbitrary date

2011-12-08 Thread Stefan Bodewig
On 2011-12-08, Emma Burrows wrote: > Apologies for revisiting this issue a week later. Don't worry. >> Another approach more in line with your original one is to explicitly >> set update to false on your modified selector during normal builds and >> set it to true when you actually deploy the fi

RE: Use Ant with an arbitrary date

2011-12-08 Thread Emma Burrows
Apologies for revisiting this issue a week later. I've finally had a minute to test the following option you suggested: > Another approach more in line with your original one is to explicitly > set update to false on your modified selector during normal builds and > set it to true when you actual

Re: global and customization of Default attribute values

2011-12-08 Thread Stefan Bodewig
On 2011-12-08, Raja Nagendra Kumar wrote: > I would like to have global default values per module or per project.. to > the attributes of all ant tasks or custom task.. > e.g for all the ant copy tasks used with in the project, I wish to make sure > failonerror="fase" .. while ant's global defaul