I would like to execute a system command, but I want to add an environment variable before the executable name (note it has to be in front of the executable). For example:
OSAGENT_PORT=20000 vbj myClass
I can't seem to find a way of using the exec task to achieve this. Making use of the <env> tag also does not solve my problem. Am I missing something in using the exec task ? Is there some other way for me to possibly achieve this ?
Any help would be appreciated.