You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Paulo Jorge Guedes <Pa...@artelecom.pt> on 2006/01/17 19:17:08 UTC

macrodef

Hi,

I have a target (-init-macrodef-junit ) that initializes "junit" target
using the "macrodef" element. It doesn't declare the "formatter" element
and I need to have the reports printed. The thing is I can't touch that
file.

Is there any way to "append" the "formatter" child element to the junit
macrodef in a target called after the one that initializes it
(-init-macrodef-junit)? It would avoid having to redefine all the junit
settings...

Paulo


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Re: macrodef

Posted by "Alexey N. Solofnenko" <a....@mdl.com>.
You can overwrite the macrodef in your build file or you can copy the 
file first, then insert necessary elements into that copy.

- Alexey.

Paulo Jorge Guedes wrote:
> Hi,
>
> I have a target (-init-macrodef-junit ) that initializes "junit" target
> using the "macrodef" element. It doesn't declare the "formatter" element
> and I need to have the reports printed. The thing is I can't touch that
> file.
>
> Is there any way to "append" the "formatter" child element to the junit
> macrodef in a target called after the one that initializes it
> (-init-macrodef-junit)? It would avoid having to redefine all the junit
> settings...
>
> Paulo
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>   

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org