How to set the path environment variable from ant script
In ant, properties are immutable, so David's suggestion above:
won't work.
But (with the antcontrib-library) variables are mutable, so this works:
NOTE: to use the antcontrib-library download it from here: ANT Contrib - Download
This gets the job done, but seems like a dastardly trick.
So to your specific question, try: