On 21 Apr 2005, <[EMAIL PROTECTED]> wrote:

>   add backtrace attribute to <macrodef>

On second glance, this is not what I need 8-(

>   +      <tr>
>   +        <td valign="top">backtrace</td>
>   +        <td valign="top">
>   +          This controls the error traceback if they is an
>   +          error detected when running the macro. If this is
>   +          set to true, there will be an erro trackback, if false
>   +          there will not be one. The default value is true.
>   +          <em>Since ant 1.7</em>.
>   +        </td>
>   +        <td valign="top" align="center">No</td>
>   +      </tr>

Is this really what it does?

AFAICS we only remove the "the following error occured" line.

>            } catch (BuildException ex) {
>   -            throw ProjectHelper.addLocationToBuildException(
>   -                ex, getLocation());
>   +            if (macroDef.getBackTrace()) {
>   +                throw ProjectHelper.addLocationToBuildException(
>   +                    ex, getLocation());
>   +            } else {
>   +                throw new BuildException(ex.getMessage(), ex);
>   +            }

what I need is

  +            } else {
  +                throw ex;
  +            }

Stefan

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to