msbuildtasks icon indicating copy to clipboard operation
msbuildtasks copied to clipboard

SvnClient output encoding

Open pvones opened this issue 12 years ago • 0 comments

Add input parameter to specify output encoding of SvnClient captured console output, similar to StdOutEncoding of Exec task. Currently it does not return SVN xml log with correct encoding.

Example:

<SvnClient ToolPath="$(SvnToolsPath)" RepositoryPath="$(Path_Repo)" Command="log" Xml="true" Verbose="true">
  <Output TaskParameter="StandardOutput" PropertyName="svnLogContent" />
</SvnClient>
<WriteLinesToFile File="$(SvnLogFileName)" Lines="$(svnLogContent)" Encoding="utf-8" Overwrite="true" />

While using Exec task the xml output have correct encoding:

<Exec Command='"$(SvnToolsPath)\svn.exe" log "$(Path_Repo)" --xml --verbose --non-interactive --no-auth-cache &gt; "$(SvnLogFileName)"' StdOutEncoding="utf-8" />

pvones avatar Dec 16 '13 17:12 pvones