--- Robert Upshall <[EMAIL PROTECTED]> wrote:
> I just downloaded the 1.0.4 plugin, I have it
> installed under
> ${api}/XDoclet/xdoclet-plugins-dist-1.0.4. I need
> some help migrating
> my XDoclet1 -> XDoclet2. I looked at the Web plugin
> and it still
> appears to support the XDoclet1 tags.
Well, tags could have been changed but once
you get XD2 running you will be soon
prompted to changed areas ( contrary to XD1, tags
are self validating and would complain aloud if they
do not like something )
> I looked at the ant examples on the XDoclet2 website
> but I still can't
> figure it out. Here are the xdoclet tags from my
> old build.xml ... can
> somebody please help me migrate this to work with
> the XDoclet2 jars.
>
> .... <snip> ....
Well, old tags are not usable for XD2, as this is
completely different architecture. XD2 is best
used with maven-2, and setting up plugin is really
easy.
Good starting point for and would be:
http://xdoclet.codehaus.org/Two+Minute+Introduction
I would suppose that you just add everything which
comes bundled to classpath of taskdef ( of course I
would suggest to exclude plugins you do not need -
there are many of them )
Tricky part is setting up of a task. It has a small
DI container inside ( picocontainer ) and you just
need to populate it with necessary components here is
the sample from our old m1 build for testapp:
<goal name="xdoclet">
<path id="xdoclet.task.classpath">
<pathelement
location="${maven.repo.local}/xdoclet-plugins/jars/xdoclet-plugin-web-${pom.currentVersion}.jar"/>
<path refid="maven.dependency.classpath"/>
</path>
<taskdef
name="xdoclet"
classname="org.xdoclet.ant.XDocletTask"
classpathref="xdoclet.task.classpath"
/>
<xdoclet>
<fileset
dir="${pom.build.sourceDirectory}">
<include name="**/*.java"/>
</fileset>
<component
classname="org.generama.JellyTemplateEngine"/>
<component
classname="org.xdoclet.plugin.web.WebPlugin"
destdir="${basedir}/target/xdoclet-output"
/>
<component
classname="org.xdoclet.plugin.web.TaglibPlugin"
destdir="${basedir}/target/xdoclet-output"
jspversion="1.2"
taglibversion="myTaglib"
shortname="my"
smallicon="dummyIcon"
description="This is a test taglib whose
tld file was generated by xdoclet."
includelisteners="false"
/>
</xdoclet>
</goal>
regards,
----[ Konstantin Pribluda http://www.pribluda.de ]----------------
JTec quality components: http://www.pribluda.de/projects/
____________________________________________________________________________________
Be a better friend, newshound, and
know-it-all with Yahoo! Mobile. Try it now.
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email