Just change:
<XDoclet:merge file="servlet-mappings.xml">
<XDoclet:forAllClasses>
<XDoclet:forAllClassTags tagName="web:servlet-mapping">
<servlet-mapping>
<servlet-name><XDoclet:classTagValue tagName="web:servlet"
paramName="name"/></servlet-name>
<url-pattern><XDoclet:classTagValue tagName="web:servlet-mapping"
paramName="url-pattern"/></url-pattern>
</servlet-mapping>
</XDoclet:forAllClassTags>
</XDoclet:forAllClasses>
</XDoclet:merge>
to:
<XDoclet:merge file="servlet-mappings.xml">
<!--
Include servlet-mappings in a file called servlet-mappings.xml and put
that in
the same merge-dir as servlets.xml.
-->
</XDoclet:merge>
<XDoclet:forAllClasses
type="javax.servlet.Servlet,javax.servlet.GenericServlet,javax.servlet.h
ttp.HttpServlet">
<XDoclet:forAllClassTags tagName="web:servlet-mapping">
<servlet-mapping>
<servlet-name><XDoclet:classTagValue tagName="web:servlet"
paramName="name"/></servlet-name>
<url-pattern><XDoclet:classTagValue tagName="web:servlet-mapping"
paramName="url-pattern"/></url-pattern>
</servlet-mapping>
</XDoclet:forAllClassTags>
</XDoclet:forAllClasses>
So that merge doesn't surround forallclasses.
Ara.
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:xdoclet-devel-
> [EMAIL PROTECTED]] On Behalf Of Dmitri Colebatch
> Sent: Thursday, October 04, 2001 4:47 PM
> To: Jan Heise
> Cc: [EMAIL PROTECTED]
> Subject: [Xdoclet-devel] web.xml - servlet-mapping merge
>
> I suppose that makes sense... if you dont mind I'll post this on dev
just
> to check with others... I'm not really across the whole merge
policy...
>
> cheers
> dim
>
> On Thu, 4 Oct 2001, Jan Heise wrote:
>
> > the diff shows exactly the needed changes. in 1.13 the merge
> > is a block around the generation of mappings. that means
> > that if a servlet-mapping.xml is found to merge in, no mappings
> > from the tags are generated. the file i sent to you fixes just
> > that. it merges servlet-mappings.xml if available but also
> > generates mappings from the tags in the sources.
> >
> > jan
> >
> > --
> > Jan Heise / Tel: +49-163-4803237 / E-Mail: [EMAIL PROTECTED]
> >
> > -----Ursprungliche Nachricht-----
> > Von: Dmitri Colebatch [mailto:[EMAIL PROTECTED]]
> > Gesendet: Donnerstag, 4. Oktober 2001 14:39
> > An: Jan Heise
> > Betreff: Re: AW: jboss-web.xml
> >
> >
> > Hi Jan,
> >
> > could you check with what's in cvs... as far as I can tell its all
in
> > there... here's the diff:
> >
> > 158c158,163
> > < <XDoclet:forAllClasses>
> > ---
> > > <!--
> > > Include servlet-mappings in a file called servlet-mappings.xml
and
> put
> > that in
> > > the same merge-dir as servlets.xml.
> > > -->
> > > </XDoclet:merge>
> > > <XDoclet:forAllClasses
> >
>
type="javax.servlet.Servlet,javax.servlet.GenericServlet,javax.servlet.h
tt
> p.
> > HttpServlet">
> > 166d170
> > < </XDoclet:merge>
> >
> > cheers
> > dim
> >
> > On Thu, 4 Oct 2001, Jan Heise wrote:
> >
> > > hi dim,
> > >
> > > found another one which i accidentially first sent to ara:
> > >
> > > > i found a small bug. if servlet-mappings.xml exists, no mappings
> > > > from the sources are generated and included. i changed the
specific
> > > > part. file is attached.
> > > >
> > > > jan
> > >
> > > --
> > > Jan Heise / Tel: +49-163-4803237 / E-Mail: [EMAIL PROTECTED]
> > > -----Ursprungliche Nachricht-----
> > > Von: Dmitri Colebatch [mailto:[EMAIL PROTECTED]]
> > > Gesendet: Mittwoch, 3. Oktober 2001 00:27
> > > An: Jan Heise
> > > Betreff: Re: jboss-web.xml
> > >
> > >
> > > Jan,
> > >
> > > Excellent - thanks for that... I'm just about to head off to work
so
> wont
> > > have a chance to do it now, but will put it through tonight.
> > >
> > > cheesr
> > > dim
> > >
> > > On Tue, 2 Oct 2001, Jan Heise wrote:
> > >
> > > > i guess you're the right person as you came up
> > > > as the last developer in the cvs-log ;-)
> > > >
> > > > i included sec-domain into the sources and the
> > > > the template. sources are attached
> > > > if it's ok, i'd love to see it included.
> > > >
> > > > jan
> > > >
> > > >
> > > > --
> > > > Jan Heise / Tel: +49-163-4803237 / E-Mail: [EMAIL PROTECTED]
> > >
> > >
> >
> >
> >
>
>
> _______________________________________________
> Xdoclet-devel mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/xdoclet-devel
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
_______________________________________________
Xdoclet-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel