[ http://jira.codehaus.org/browse/XDP-132?page=comments#action_49814 ] 

Ittay Dror commented on XDP-132:
--------------------------------

comment from Karthik Guru through mailing list:

It doesnt look like xdoclet2 issue.
ant is converting the case when setting properties.

xdoclet2  uses

org.apache.tools.ant.DynamicConfigurator to set properties dynamically on the 
plugin.

I just wrote a test to see how the ant interface works and it seems to change 
the case.

<dynamictask servletVersion="2.4" name="blah"/>

is being read as 'servletversion' and 'name' by ant.

Interenally it is passed on to pico container. Pico looks for a property 
'servletversion' instead of 'servletVersion' and it fails to satisfy that 
setter.

Looks like plugins should use lowercase attribute names only to make it work 
through ant!


> cannot generate web.xml for 2.4 servlet api
> -------------------------------------------
>
>          Key: XDP-132
>          URL: http://jira.codehaus.org/browse/XDP-132
>      Project: XDoclet 2 Plugins
>         Type: Bug
>   Components: web
>     Reporter: Ittay Dror

>
>
> <component
>               classname="org.xdoclet.plugin.web.WebPlugin"
>               destdir="${maven.war.webapp.dir}/WEB-INF"
>               mergedir="${maven.war.src}/WEB-INF"
>               servletVersion="2.4"
>             />
> causes
> org.picocontainer.PicoIntrospectionException: Unknown property 
> 'servletversion' in class org.xdoclet.plugin.web.WebPlugin Existing 
> properties:[EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL 
> PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL 
> PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL 
> PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL 
> PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL 
> PROTECTED]
> (same thing if i set servletversion="2.4" in the component attributes)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira



-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
xdoclet-plugins-interest mailing list
xdoclet-plugins-interest@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xdoclet-plugins-interest

Reply via email to