This works with multioutput set to true, with plugins that have multioutput to false you do it by overriding the start method of the Plugin superclass. (Correct me if I am wrong)
In your start method check if the class exists, if not, call super.start();

Joris

Konstantin Priblouda <[EMAIL PROTECTED]> wrote on 2005-12-17 02:18:06 PM:

>
>
> --- Stefan Undorf <[EMAIL PROTECTED]> wrote:
>
> > Hi,
> >
> > is it possible to generate a file only if a file
> > with the same name is not
> > already present?
>
>
> you can check for existence of such file in
> shouldGenerate(Object metadata)
> method.
> There is a lot of samples in current CVS version (
> like hibernate plugin )
> 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
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com

Reply via email to