I was looking at the documentation for the Exec task (yes I'm writing a new MSBuild book!) and discovered that it is lacking. So I decided to post the complete list of properties here. So here it is for those of you using it.
The command which is to be executed. This is the only required parameter.
If provided this will be the regex used to determine if an error occurred.
If provided this will be the regex used to determine that a warning occurred.
Output property containing the exit code provided by the executed command.
If true then the Exec task will not fail the build based on the exit code. Otherwise the build is failed for any non-zero exit code.
If true the output is not examined for errors and warnings.
An input/output parameter that contains the output items from the task. This is not set by the Exec task itself but made available to be set by the consumer.
An input/output parameter that specifies the encoding that is used for the standard error stream.
An input/output parameter that specifies the encoding that is used for the standard output stream.
Specifies the timout, in milliseconds for the command. After the specified amount of time has passed the command will be terminated. By default there is no timeout
Specifies the location of the tool.
Specifies the working directory.
* Denotes new properties in MSBuild 3.5
There is a slightly new behavior in this version of the task relating to detecting errors & warnings from the output of the command. Take a look at the forum entry Exec task and "error :" in output.
More to come on the new book later keep an eye here soon. If you have ideas about specific examples that should be demonstrated let me know, for example; how to zip a set of file, how to ftp files to a server, your example here, etc.
Sayed Ibrahim Hashimi