|
View:
New views
2 Messages
—
Rating Filter:
Alert me
|
|
|
migration helpI 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. 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> .... <!-- the classpath needed for xdoclet generation --> <path id="xdoclet.classpath"> <path refid="project.classpath" /> <fileset dir="${api}/xdoclet-1.2.3/lib"> <include name="*.jar" /> </fileset> </path> <!-- generate the xdoclet source and config files --> <target name="init-xdoclet" description="generate xdoclet src"> <mkdir dir="${xdoclet}" /> <taskdef classpathref="xdoclet.classpath" classname="xdoclet.modules.web.WebDocletTask" name="webdoclet"/> <webdoclet destDir="${xdoclet}/WEB-INF" mergeDir="${xdoclet.merge}"> <fileset dir="${src}" includes="com/psasoft/internet/agent/**/*" /> <jsptaglib Jspversion="1.2" taglibversion="1.0" shortname="psa-agent-taglib" description="PSA Internet - Agent Tag Library" filename="psa-agent-taglib.tld" /> <deploymentdescriptor Servletspec="2.3" displayname="PSA Internet Agent" description="PSA Internet Agent" /> </webdoclet> </target> .... <snip> .... Thanks, Robert --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
|
|
Re: migration help--- Robert Upshall <rupshall@...> 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 |
| Free embeddable forum powered by Nabble | Forum Help |