Firstly, you use the exec command wrong
The command is set
and its argument should 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 won't have an effect
The Path you set, will only be available to the shell/command that is executed by invoking exec. After the call it will not be available to further commands /executions.
You didn't state what use case you have or where you need the variable, therefore I can only guess, what you could do.
You could do the following:
- Set the Path directly in Windows, for everything (if that is okay)
- Edit the batch file, that starts cruisecontrol and set the PATH there
- Create a batch file for the command that needs the PATH and set the PATH there.
- Some ant-tasks allow to specify environment variables for them