You might want to look at jelly's define:taglib, define:tag tags? I think these
can help you re-use jelly/maven snippets.
http://jakarta.apache.org/commons/jelly/libs/define/tags.html
Some other helpful Jelly references.
http://jakarta.apache.org/commons/jelly/tag-reference/all.html
http://jakarta.apache.org/commons/jelly/libs/index.html
Assuming you have XML namespace set up for jelly:ant, I was under impression
that you could do <ant:macrodef> to set up macro definitions in jelly scripts. I
have never tried this myself, but you can give it a shot.
HTH,
Rahul
----- Original Message -----
From: "Afkham Azeez" <[EMAIL PROTECTED]>
To: "Maven Users List" <[email protected]>
Sent: Thursday, January 05, 2006 6:29 PM
Subject: Re: Creating macros in maven
Hi Arnaud,
This is for M1. I want to reuse some portions of my maven script,
hence I need something like a function, where I can pass in
parameters.
Thanks
Azeez
On 1/4/06, Arnaud HERITIER <[EMAIL PROTECTED]> wrote:
Can you explain why you want it ?
In m1 or m2 ?
Arnaud
On 1/4/06, Afkham Azeez <[EMAIL PROTECTED]> wrote:
>
> Hi
>
> I'm a maven newbee... Can anybody tell me whether macros (similar to
> ant macros) can be written using maven? If so, please provide me with
> some pointers.
>
> --
> Thanks in advance
> Afkham Azeez
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
--
Thanks
Afkham Azeez
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]