Hi Diogo,

nope, haven't looked into those yet, but it is the path I will try out,
if noone
have a sample I can use. I'll go hunting the source and see what shall be
reveiled ...

br,
/Sverre

Quoting "Diogo Quintela \(EF\)" <[EMAIL PROTECTED]>:

Have you looked into org.xdoclet.ant.XDocletTask ?
If you follow it up into GeneramaTask (dunno the exact name), and into
PicoContainerTask I guess you'll have your answer (Don't have the sources
available so, sorry if I mislead you).

I guess you should be registering exactly the same components as there.


Diogo

-----------------------------------
Diogo Bacelar Quintela
EF - Tecnologias de Informação, Lda.
Av. António Serpa, 26 - 4º Dto.
1050-027 Lisboa, Portugal
Tel: (+351) 217 827 800
Fax: (+351) 217 827 830
Email: [EMAIL PROTECTED]
PGP: 0xF51A5AB9

-----Original Message-----
From: Sverre Eplov [mailto:[EMAIL PROTECTED]
Sent: quinta-feira, 29 de Setembro de 2005 15:30
To: dev@xdoclet.codehaus.org
Subject: [xdoclet-dev] How to create a standalone program activating
XDoclet

H'all,

I'm currently looking at writing a maven2 plugin for xdoclet2 - partly
because I
need to figure out how to write maven2 plugins, and partly because I badly
need
it.

I have looked at the current XDoclet code, and as far as I can figure, I
need to
do following:

1) create a class extending org.xdoclet.Xdoclet overriding
composeContainer.

2) composeContainer should register the nescessary components with pico

3) tell pico to go to work.

So what I'm trying to figure out is:
 - which components to instantiante and register with pico
 - how to configure the components once instantiated.
 - how do I kick off pico once I've registerede the components.

I know, that this will vary a bit depending on which XDoclet2 plugins
should be
invoked, but if someone could point me in the right direction, I think I
can
work the rest out.

Does anyone have a small sample which activates XDoclet through a main
method as
a standalone program ? I guess that having that, I can work out the rest.

br,
/Sverre Eplov, [EMAIL PROTECTED]


----- End forwarded message -----





Reply via email to