Actual version of plugin would be 1.0.4-SNAPSHOT
and I'm not sure whether 1.0.3 is in a good shape
( is pretty old anyway ) 

You should also add struts as dependency ( to 
classpath ), because XDoclet needs classes from there
to determine what an action class is.
regards,

PS: maven 2 is a tool of a choice...


--- radekg <[EMAIL PROTECTED]> wrote:

> 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
> _______________________________________________
> xdoclet-plugins-interest mailing list
> [email protected]
>
https://lists.sourceforge.net/lists/listinfo/xdoclet-plugins-interest
> 


----[ Konstantin Pribluda http://www.pribluda.de ]----------------
Still using XDoclet 1.x?  XDoclet 2 is released and of production quality.
check it out: http://xdoclet.codehaus.org


 
____________________________________________________________________________________
It's here! Your new message!  
Get new email alerts with the free Yahoo! Toolbar.
http://tools.search.yahoo.com/toolbar/features/mail/

-------------------------------------------------------------------------
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
_______________________________________________
xdoclet-plugins-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xdoclet-plugins-interest

Reply via email to