Firstly, you are using the wrong exec command
The set command, and its argument must be PATH=%PATH%;D:\QtSDK\mingw\bin\
This should work:
<exec command="set" workingdir="d:\AppLiteNew\Projects\" args = "PATH=%PATH%;D:\QtSDK\mingw\bin\"/>
Secondly, it will have no effect
The path you set will only be accessible to the shell / command executed when exec is called. After the call, he will not be available for further teams / performances.
You did not indicate which use case you have or where you need the variable, so I can only guess what you could do. You can do the following:
- Set the path directly in Windows, for everything (if that's ok)
- Edit the batch file that launches cruisecontrol and sets the PATH there
- Create a batch file for the command that needs PATH and set PATH there.
- Some ant -tasks allow you to specify environment variables for them.
source share