提交 fa501bf7 编写于 作者: A Ankit Jain

[xbuild] Log TaskFinished even when task fails to initialize.

上级 14902f25
......@@ -84,12 +84,13 @@ namespace Microsoft.Build.BuildEngine {
[MonoTODO]
public bool Execute ()
{
bool result;
bool result = false;
TaskEngine taskEngine;
LogTaskStarted ();
ITask task = null;
try {
try {
task = InitializeTask ();
} catch (Exception e) {
......@@ -111,8 +112,9 @@ namespace Microsoft.Build.BuildEngine {
"Error executing task {0}: {1}", taskElement.LocalName, e.ToString ());
result = false;
}
} finally {
LogTaskFinished (result);
}
return result;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册