--- Karsten Klein <[EMAIL PROTECTED]>
wrote:

> Hi there,
Hallo Karsten.

> I'm also new to xdoclet2 and I found it very
> interesting. For my 
> evaluation I have written three new plugin classes
> (two creating Java 
> code and one creating xml). The next step would be
> to integrate these 
> plugins into my ant build procedure for automation
> and integration into 
> a nightly build. However I always run into a
> 
> BUILD FAILED
> ..\build\ant\xdoclet.xml:31:
> org.picocontainer.PicoInitializationException
> 
> The exception doesn't state anything more than the
> line above. I'm a 
> little lost on this now and therefore request some
> help.

XDoclet 2 ( Generama ) uses pico container internally
so that' why PIE is thrown. This happens mostly
because your plugin has some unsatisfied dependency. 

You have forgot to register tenmplate engines (
typically you will need velocity one for java
generation, and jelly for xml ) 

Here is my invocation ( though I use maven, but there
is no syntax difference ) :

        <taskdef
                name="xdoclet"
               
classname="org.xdoclet.ant.XDocletTask"
               
classpathref="xdoclet.task.classpath"/>
        <xdoclet verbose="false">
            <fileset
dir="${pom.build.sourceDirectory}">
                <include name="**/*.java"/>
            </fileset>
            <component
classname="org.generama.VelocityTemplateEngine"/>
            <component
classname="org.generama.JellyTemplateEngine"/>

            <component
                   
classname="org.xdoclet.plugin.hibernate.HibernateMappingPlugin"
                   
destdir="${build.xdoclet.hibernate.output}"
                    />
        </xdoclet>

Inside xdoclet tag you are basically registering 
components inside picocontainer. then xdoclet starts 
startable components.


You may also look into xdoclet-plugins
( http://www.sourceforge.net/projects/xdoclet-plugins
) 
for more inspisration. 
( they are build using xdoclet too ) 
regards,
 

----[ Konstantin Pribluda ( ko5tik ) ]----------------
... Auf der Suche nach einen Projekt in Rhein-Main
ab 18.4.2005
----[ http://www.pribluda.de ]------------------------


                
__________________________________ 
Discover Yahoo! 
Find restaurants, movies, travel and more fun for the weekend. Check it out! 
http://discover.yahoo.com/weekend.html 

Reply via email to