mergeDir doesn't work

Marc Chételat ML <ml-aZAF/[email protected]>
Newsgroups gmane.comp.java.xdoclet-plugins
Message-ID <[email protected]>
Hi all,

I m using Xdoclet 2 with the following versions downloaded on 
http://dist.codehaus.org

xdoclet-plugin-web-1.0.4-SNAPSHOT.jar
xdoclet-2.0.6-SNAPSHOT.jar
generama-1.2.3-SNAPSHOT.jar
commons-jelly-tags-xml-20050823.222913.jar
...

When I compile with Ant, my merge files are never integrated in my 
generated file web.xml

For example, my servlets.xml:

<?xml version="1.0" encoding="UTF-8"?>
<j:jelly  xmlns:j="jelly:core">       
    <servlet>
        <servlet-name>action</servlet-name>
        
<servlet-class>org.apache.struts.action.ActionServlet</servlet-class>      
        <init-param>
            <param-name>validate</param-name>
            <param-value>true</param-value>
        </init-param>
        <load-on-startup>2</load-on-startup>
    </servlet>       
    <servlet>
    ...
    </servlet>     
</j:jelly>

My ant task :
<xdoclet>             
         <!-- defines the file handled by xdoclet2 -->
         <fileset dir="${basedir}/src/webapp">
           <include name="**/*Servlet.java" />
           <include name="**/*Filter.java" />
           <include name="**/*Listener.java" />
         </fileset>
        
           <component
             classname="org.xdoclet.plugin.web.WebPlugin"            
             mergedir="${basedir}\templateconfig\webapp\"
             destdir="${basedir}\config\webapp\"
             servletversion="2.4"                    
             validate="true" />

       </xdoclet>

If I enable the debug mode with ANT, I see something strange:
Couldn't load Resource 
D:\projects\dev\web\templateconfig\webapp\servlets.xml

But this file exists !!!


I tried all this week with other versions of jar (from xdoclet plugins 
1.0.3 ... until this last state of snapshots...)

Can somebody say me if it exists a current version of Xdoclet2 with 
plugins that can generate config files with integrating my template file ?

Many thanks in advance for your answer!

Regards,
Marc


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.