X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mcs%2Fclass%2FMicrosoft.Build.Utilities%2FMicrosoft.Build.Utilities%2FTask.cs;h=2834c874cbe3fd2101f7b8aef79499d54889fdd1;hb=aef44c0fdc1890f869f9c48635e43693aee5b7af;hp=d768edb5617d0cd73a6bf792580baa662be68a67;hpb=559ad5b34bc086b51af2e589b32ea2eae0f78820;p=mono.git diff --git a/mcs/class/Microsoft.Build.Utilities/Microsoft.Build.Utilities/Task.cs b/mcs/class/Microsoft.Build.Utilities/Microsoft.Build.Utilities/Task.cs index d768edb5617..2834c874cbe 100644 --- a/mcs/class/Microsoft.Build.Utilities/Microsoft.Build.Utilities/Task.cs +++ b/mcs/class/Microsoft.Build.Utilities/Microsoft.Build.Utilities/Task.cs @@ -38,7 +38,6 @@ namespace Microsoft.Build.Utilities string helpKeywordPrefix; ITaskHost hostObject; TaskLoggingHelper log; - ResourceManager taskResources; protected Task() : this (null, null) @@ -53,7 +52,8 @@ namespace Microsoft.Build.Utilities protected Task(ResourceManager taskResources, string helpKeywordPrefix) { - this.taskResources = taskResources; + log = new TaskLoggingHelper (this); + log.TaskResources = taskResources; this.helpKeywordPrefix = helpKeywordPrefix; } @@ -65,7 +65,6 @@ namespace Microsoft.Build.Utilities } set { buildEngine = value; - log = new TaskLoggingHelper (this); } } @@ -99,10 +98,10 @@ namespace Microsoft.Build.Utilities protected ResourceManager TaskResources { get { - return taskResources; + return log.TaskResources; } set { - taskResources = value; + log.TaskResources = value; } } }