In Ant 1.3, there is a Property tag that allows you do that.

Check out the documentation - it's pretty cool! 8)

Ori Burstein wrote:

I need to use an environment variable in my script .I can't pass it as an argument ( I have to use a certain shell, which is implemented here).Please advise me on how can I gather an environment variable into my XML file.