Re: mutliple tag name multiple plugins ?

Konstantin Priblouda <kpriblouda-/[email protected]> Mon, 22 Jan 2007 23:11:15 -0800 (PST)
Newsgroups gmane.comp.java.xdoclet-plugins
Message-ID <[email protected]>
--- Narahari 'n' Savitha <[email protected]> wrote:

> Friends,
> 
> Please see the code below.  As you can see I have
> two tags
> 
> @generate.props and @generate.include.
> 
> Do I have to write two plugins
> GeneratePropsPlugin.java and
> GenerateIncludePlugin.java ?
> 
> Can I have only one file like
> GenerateCommonPlugin.java that can handle both
> the @generate.props and the @generate.include tags?

It depends on what you like to achieve.  Rule of a
thumb is one artifact ( kind of artifact )  - one
plugin. 

PLugin & template can use whatever tags they like. 

regards,

----[ Konstantin Pribluda http://www.pribluda.de ]----------------
Still using XDoclet 1.x?  XDoclet 2 is released and of production quality.
check it out: http://xdoclet.codehaus.org


 
____________________________________________________________________________________
TV dinner still cooling? 
Check out "Tonight's Picks" on Yahoo! TV.
http://tv.yahoo.com/

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV