/// <summary> /// Executes the task. /// </summary> protected override void ExecuteTask() { try { if (TryBlock != null) { TryBlock.Execute(); } } catch (BuildException be) { if (CatchBlock != null) { CatchBlock.Catch(be); } else { throw; } } finally { if (FinallyBlock != null) { FinallyBlock.Execute(); } } }
/// <summary> /// Executes the task. /// </summary> protected override void ExecuteTask() { try { if (TryBlock != null) { TryBlock.Execute(this.CallStack); } } catch (BuildException be) { if (CatchBlock != null) { CatchBlock.Catch(be, this.CallStack, this.PropertyAccessor); } else { throw; } } finally { if (FinallyBlock != null) { FinallyBlock.Execute(this.CallStack); } } }