Struts migration from Xdoclet1 to Xdoclet2

radekg <[email protected]> Sat, 13 Jan 2007 18:32:20 +0000
Newsgroups gmane.comp.java.xdoclet-plugins
Message-ID <[email protected]>
Hello,
I have just migrated from Xdoclet1 to Xdoclet2.I managed to set the
environment for xdoclet2 but it does not produce any action-mappings.

In Xdoclet1 my build.xml contents was:
<target name="generate-web" depends="init,copySources"
description="Generate struts xml files">
	<taskdef name="webdoclet"
		classname="xdoclet.modules.web.WebDocletTask"
		classpathref="xdoclet.lib.path" />
	<webdoclet destdir="${web.descriptor.dir}"
		excludedtags="@version,@author,@SuppressWarnings">
	<fileset dir="${src.dir}">
		<include name="**/*.java" />
	</fileset>
	<strutsconfigxml version="1.1" />
	</webdoclet>
</target>
and action mappings were generated.

Now a new part of build.xml file is:
<target name="xdoclet" depends="init,copySources" description="Generate
	struts xml files">
	<path id="xdoclet.task.classpath">
<pathelement
location="${xdoclet.lib.dir}/xdoclet-plugins/xdoclet-plugin-struts-1.0.3.jar" 

/>

<pathelement location="${xdoclet.lib.dir}/commons-beanutils-1.7.0.jar"/>
<pathelement location="${xdoclet.lib.dir}/commons-collections-3.1.jar" />
<pathelement
location="${xdoclet.lib.dir}/commons-jelly-20050813.225330.jar"/>
<pathelement
location="${xdoclet.lib.dir}/commons-jelly-tags-define-1.0.jar"/>
<pathelement location="${xdoclet.lib.dir}/commons-jelly-tags-jsl-1.0.jar"/>
<pathelement
location="${xdoclet.lib.dir}/commons-jelly-tags-xml-20050823.222913.jar"/>
<pathelement location="${xdoclet.lib.dir}/commons-jexl-1.0.jar" />
<pathelement location="${xdoclet.lib.dir}/commons-logging-1.0.4.jar" />
<pathelement location="${xdoclet.lib.dir}/dom4j-1.6.jar" />
<pathelement location="${xdoclet.lib.dir}/generama-1.2.1.jar" />
<pathelement location="${xdoclet.lib.dir}/jaxen-1.1-beta-4.jar" />
<pathelement location="${xdoclet.lib.dir}/log4j.jar" />
<pathelement location="${xdoclet.lib.dir}/nanocontainer-1.0-beta-3.jar" />
<pathelement
location="${xdoclet.lib.dir}/nanocontainer-ant-1.0-beta-3.jar" />
<pathelement location="${xdoclet.lib.dir}/picocontainer-1.0.jar" />
<pathelement location="${xdoclet.lib.dir}/qdox-20051211.114207.jar" />
<pathelement location="${xdoclet.lib.dir}/saxpath-1.0-FCS.jar" />
<pathelement location="${xdoclet.lib.dir}/velocity-1.4.jar" />
<pathelement location="${xdoclet.lib.dir}/xdoclet-2.0.4.jar" />
<pathelement location="${xdoclet.lib.dir}/xerces-2.4.0.jar" />
	</path>

	<taskdef name="xdoclet"
		classname="org.xdoclet.ant.XDocletTask"
		classpathref="xdoclet.task.classpath" />

		<xdoclet>
			<!-- defines the file handled by xdoclet2 -->
			<fileset dir="${src.dir}">
				<include name="**/*.java" />
			</fileset>

			<!-- defines the processing of a plugin -->
			<component classname="org.xdoclet.plugin.struts.StrutsConfigXMLPlugin"
				destdir="${basedir}/target/"
				mergedir="${web.descriptor.dir}/merge" />
	</xdoclet>
</target>

and the result is just empty
<action-mappings/>

Please could someone help?
Regards
Radoslaw Golebiewski


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV