I looked in the maven-xdoclet-plugin's plugin.jelly for just that
information, and I did try:
maven.xdoclet.webdoclet.deploymentdescriptor.0.ConfiguredWelcomefile.0=true
maven.xdoclet.webdoclet.deploymentdescriptor.0.ConfiguredWelcomefile.0.file=
index.jsp
no joy.
I'm using the 1.2b4 version. Could that bug be preventing this from
working?
----- Original Message -----
From: "Konstantin Priblouda" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, October 08, 2003 6:12 AM
Subject: Re: [Xdoclet-user] new to maven & xdoclet
> You like to check whether I read this? :)
>
> --- khote <[EMAIL PROTECTED]> wrote:
> > I have to ask some basic questions here, just
> > starting out. I'm not yet
> > able to see how setting these variables in my
> > project.properties relates to
> > things which are done in, say, web_xml.xdt
> >
> > For example, I want to add a welcomeFile to the
> > <welcome-files> section. I
> > can see
> >
> > <XDtMerge:merge file="welcomefiles.xml">
> > </XDtMerge:merge>
> > <XDtConfig:ifHasConfigParam
> > paramName="welcomeFiles">
> > <welcome-file-list>
> > <XDtConfig:forAllConfigParameters
> > paramName="welcomeFiles">
> > <welcome-file><XDtConfig:configParameterValue
> > paramName="welcomeFiles.file"/></welcome-file>
> > </XDtConfig:forAllConfigParameters>
> > </welcome-file-list>
> >
>
> Gosh, you just uncovered a bug. Correct way would be:
> ---%<-----------
> <XDtMerge:merge file="welcomefiles.xml">
>
> <XDtConfig:ifHasConfigParam
> paramName="welcomeFiles">
> <welcome-file-list>
> <XDtConfig:forAllConfigParameters
> paramName="welcomeFiles">
> <welcome-file><XDtConfig:configParameterValue
> paramName="welcomeFiles.file"/></welcome-file>
> </XDtConfig:forAllConfigParameters>
> </welcome-file-list>
> </XDtConfig:ifHasConfigParam>
> </XDtMerge:merge>
> ---%<---------------
>
> so merge file takes precedence over config parameter
>
>
>
> > How can I add welomeFiles using maven's
> > project.properties? How do I
> > arrange the property setting so that it ads
> > something to welcomeFiles.file?
> >
> > maven.xdoclet.webdoclet.deploymentdescriptor.0=true
> >
> maven.xdoclet.webdoclet.deploymentdescriptor.0.sessiontimeout=30
> >
> > these things work find. Where/how do I specify
> > welcomeFiles?
>
> As I can see, you already started to read xdoclet
> templates with success. Now you can move to reading
> autogenerated plugin.jelly :)
>
> searching for "welcome" produced indetersing fragment
> on line 3364 ( as of today build ) :
>
>
> ---%<-------------
> <j:set var="nested_element_index"
> value="0"/>
> <j:forEach begin="0" end="10"
> indexVar="nested_element_index">
> <j:set var="prop_name"
>
value="maven.xdoclet.webdoclet.deploymentdescriptor.${subelement_index}.Conf
iguredWelcomefile.${nested_element_index}"/>
> <j:if
> test="${context.getVariable(prop_name) != null}">
> <ConfiguredWelcomefile>
> <j:set var="prop_name"
>
value="maven.xdoclet.webdoclet.deploymentdescriptor.${subelement_index}.Conf
iguredWelcomefile.${nested_element_index}.file"/>
> <jelant:setProperty
> name="file"
> value="${context.getVariable(prop_name)}"/>
> </ConfiguredWelcomefile>
> </j:if>
> </j:forEach>
> ---%<-----------
>
> So I take wild guess, that you should to play with
> properties of form:
> maven.xdoclet.webdoclet.deploymentdescriptor.{number
> up to 9].ConfiguredWelcomeFile.{another index up to 9}
> = true
> maven.xdoclet.webdoclet.deploymentdescriptor.{number
> up to 9].ConfiguredWelcomeFile.{another index up to
> 9}.file=<file name of your choice>
>
>
> regards,
>
> =====
> ----[ Konstantin Pribluda ( ko5tik ) ]----------------
> Zu Verst�rkung meines Teams suche ich ab Sofort einen
> Softwareentwickler[In] f�r die Festanstellung.
> Arbeitsort: Mainz
> Skills: Programieren, Kentnisse in OpenSource-Bereich
> ----[ http://www.pribluda.de ]------------------------
>
> __________________________________
> Do you Yahoo!?
> The New Yahoo! Shopping - with improved product search
> http://shopping.yahoo.com
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> xdoclet-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/xdoclet-user
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
SourceForge.net hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user