I'm implementing the makeProgramCommandLine method and in my list of arguments I have an msbuild parameter that is already quoted. The commandlinebuilder seems to add its own quotes which cause my command line execution to fail
For example I might have the following values:
getExecutablePath : "C:\Windows\Microsoft.NET\Framework64\v4.0.30319\msbuild.exe"
getArguments : C:\test\msbuild.xml
and when I look into the teamcity logs the following command is being run:
C:\Windows\Microsoft.NET\Framework64\v4.0.30319\msbuild.exe C:\test\msbuild.xml "/p:SamplePath="C:\another path"" /p:debug=true /p:LoggingFile="C:\temp\logging.log"
It seems that if the path has a space (ie..needs to be covered in quotes), teamcity adds quotes to the argument, even if they already exist.