Exemplo n.º 1
0
 /// <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();
         }
     }
 }
Exemplo n.º 2
0
 /// <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);
         }
     }
 }