I was looking at the mapper task. I didn't fully get it, but I think it could
handle what you're looking for.
From: "Knuplesch, Juergen"
To: Ant Users List
Sent: Thursday, May 28, 2009 2:23:58 AM
Subject: AW: clone fake environment va
Hello,
One way this could work is by wrting your own exec2 task by using the
source and add an argument of your choice that does the trick (an extension of
the env argument).
Probably a script (python, etc.) language is also able to set environment
variables.
So you could use the script task