Paul Hammant wrote:
> Ulrich,
>
>> apparently it is not possible to use the empty string as a
>> configuration element value anymore. I get this exception when trying:
>>
>> org.apache.avalon.framework.configuration.ConfigurationException: No
>> value is associated with the configuration element "foo" at
>> file:/local/avalon/apps/foobar/SAR-INF/config.xml:35:26
>>
>> Is that a bug? We frequently use the empty string as a value for doing
>> string concatenation etc.
>
>
> Could you lace together a minimalist example please ?
Sure. Just add the following line to the configure-method of
org/apache/avalon/apps/demos/helloworldserver/HelloWorldServerImpl.java:
String test = configuration.getChild("test").getValue();
Plus add the following line to avalon-demo-config.xml in the section for
the HelloWorldServer:
<test></test>
Ulrich
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>