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}.ConfiguredWelcomefile.${nested_element_index}"/>
<j:if
test="${context.getVariable(prop_name) != null}">
<ConfiguredWelcomefile>
<j:set var="prop_name"
value="maven.xdoclet.webdoclet.deploymentdescriptor.${subelement_index}.ConfiguredWelcomefile.${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