Sorry,
I made a mistake.
This mailing list was not the destination.
Olivier

-----Message d'origine-----
De : Heritier Arnaud [mailto:[EMAIL PROTECTED] 
Envoy� : lundi 21 juin 2004 13:47
� : Maven Users List
Objet : RE : Xdoclet et LookupDispatchAction



In english it's better. 

Why don't you use somethink like this in your maven.xml : 

<project xmlns:j="jelly:core" xmlns:ant="jelly:ant" default="war"> 
  <preGoal name="java:compile"> 
    <mkdir dir="${maven.build.dir}/xdoclet/webdoclet/WEB-INF" /> 
        <attainGoal name="xdoclet:webdoclet" /> 
  </preGoal> 
</project> 

In your project.properties : 
maven.eclipse.classpath.include=src/test-cactus,src/conf 
maven.war.webapp.dir=${maven.build.dir}/xdoclet/webdoclet 
maven.xdoclet.webdoclet.0=true 
maven.xdoclet.webdoclet.0.destDir=${maven.build.dir}/xdoclet/webdoclet/W
EB-INF 
maven.xdoclet.webdoclet.0.mergeDir=src/merge 
maven.xdoclet.webdoclet.strutsconfigxml.0=true 
maven.xdoclet.webdoclet.strutsconfigxml.0.validateXML=true 
maven.xdoclet.webdoclet.strutsconfigxml.0.Version=1.1 
maven.xdoclet.webdoclet.strutsconfigxml.0.destDir=${maven.build.dir}/xdo
clet/webdoclet/WEB-INF 
maven.xdoclet.webdoclet.strutsconfigxml.0.mergeDir=src/merge 
maven.xdoclet.webdoclet.strutsvalidationxml.0=true 
maven.xdoclet.webdoclet.strutsvalidationxml.0.destDir=${maven.build.dir}
/xdoclet/webdoclet/WEB-INF 
maven.xdoclet.webdoclet.jbosswebxml.0=true 
maven.xdoclet.webdoclet.jbosswebxml.0.destDir=${maven.build.dir}/xdoclet
/webdoclet/WEB-INF 
maven.xdoclet.webdoclet.deploymentdescriptor.0.destDir=${maven.build.dir
}/xdoclet/webdoclet/WEB-INF 
maven.xdoclet.webdoclet.deploymentdescriptor.0.mergeDir=src/merge 
maven.xdoclet.webdoclet.fileset.0.include=**/*.java 
maven.xdoclet.webdoclet.jsptaglib.0.destDir=${maven.build.dir}/xdoclet/w
ebdoclet/WEB-INF/tld 

Then you call the war target : 
maven war 


You can try to generate a webapp example in an empty directory with : 
maven genapp struts-jstl 

It will give you a sample for a webapp/maven project. 

Arnaud 






> -----Message d'origine----- 
> De : Olivier Lamy [mailto:[EMAIL PROTECTED] 
> Envoy� : lundi 21 juin 2004 09:13 
> � : Maven Users List 
> Objet : Xdoclet et LookupDispatchAction 
> 
> 
> Bonjour la liste, 
> Je me mets � l'utilisation de xdoclet. (Il faut bien s'y 
> mettre un jour). J'ai un petit souci quand � la g�n�ration du 
> struts-config.xml. J'utilise des class qui �tendent 
> LookupDispatchAction. exemple : 
> MethodsAction extends LookupDispatchAction 
>  
> une m�thode : 
>      * @struts.action 
>      *  name="listall" 
>      *  path="/methods/all" 
>      *  scope="request" 
>      *  input="" 
>      *  validate="false" 
>      *  parameter="method" 
>      * @struts.action-forward 
>      *  name="Success" 
>      *  path="list.procs" 
>      *  redirect="false" 
>      * @struts.action-forward 
>      *  name="Failure" 
>      *  path="home" 
>      *  redirect="false" 
>      */ 
>     public ActionForward listall(final ActionMapping mapping, 
> final ActionForm form, 
>                                 final HttpServletRequest 
> request, final HttpServletResponse response) 
>  
>  
> mon ant (goal maven) 
>  
> <ant:webdoclet destdir="${maven.xdoclet.webdoclet.destDir}" 
> 
> force="${maven.xdoclet.webdoclet.force}" 
> 
> verbose="${maven.xdoclet.webdoclet.verbose}" 
> 
> mergeDir="${maven.xdoclet.webdoclet.mergeDir}" 
> 
> distributable="false" 
> 
> excludedtags="@version,@author"> 
> 
> <fileset dir="${pom.build.sourceDirectory}"> 
> 
> <include name="**/*.java"/> 
> 
> </fileset> 
> 
> <ant:strutsconfigxml version="1.1" 
> destdir="${maven.xdoclet.webdoclet.destDir}/struts" 
> 
> xmlencoding="${maven.xdoclet.webdoclet.encoding}"> 
> 
> </ant:strutsconfigxml> 
> 
> <!--<ant:deploymentdescriptor servletspec="2.2" 
> destdir="${maven.xdoclet.webdoclet.destDir}" 
> 
> xmlencoding="${maven.xdoclet.webdoclet.encoding}" />--> 
> 
> </ant:webdoclet> 
> 
>  
> 
> Pour le web.xml pas de probl�me mais le struts-config reste 
> d�sesp�ment vide. 
> 
> Merci, 
> 
> Olivier 
> 
> 
> 
> This e-mail, any attachments and the information contained 
> therein ("this message") are confidential and intended solely 
> for the use of the addressee(s). If you have received this 
> message in error please send it back to the sender and delete 
> it. Unauthorized publication, use, dissemination or 
> disclosure of this message, either in whole or in part is 
> strictly prohibited. 
> ************************************************************** 
> ******** 
> Ce message �lectronique et tous les fichiers joints ainsi que 
>  les informations contenues dans ce message ( ci apr�s "le 
> message" ), sont confidentiels et destin�s exclusivement � 
> l'usage de la  personne � laquelle ils sont adress�s. Si vous 
> avez re�u ce message par erreur, merci  de le renvoyer � son 
> �metteur et de le d�truire. Toutes diffusion, publication, 
> totale ou partielle ou divulgation sous quelque forme que se 
> soit non express�ment autoris�es de ce message, sont interdites. 
> ************************************************************** 
> ******** 
> 
> 

--------------------------------------------------------------------- 
To unsubscribe, e-mail: [EMAIL PROTECTED] 
For additional commands, e-mail: [EMAIL PROTECTED] 

Reply via email to