Re: [configuration] Re: Space or single quote as a value in properties files
Thank you Oliver, However with some simple tests that I've ran, I saw that even XMLConfiguration does not support this feature. It would be nice to see that as an option in the Apache configuration module, at least for me, its been many times that I need such values in a configuration file. thank you again, -- Asterios On Thu, Feb 4, 2010 at 10:18 PM, Oliver Heger oliver.he...@oliver-heger.dewrote: Am 04.02.2010 17:42, schrieb Asterios Katsifodimos: Hi all, I would like to know if there is a way to set the value of a variable (key) to be the space character in a PropertiesConfiguration file. for example variable = could I use the double quotes to do that? From looking at the code it seems that it is not possible to define a space character as property value. All lines are trimmed after they were read. Unfortunately, double quotes are also not supported. I am not sure, would it make sense to add support for this feature? What would be the exact specification? Don't know whether this helps you, but with XMLConfiguration you can set space characters as property values. Oliver thank you, -- Asterios Katsifodimos INRIA Saclay France - To unsubscribe, e-mail: user-unsubscr...@commons.apache.org For additional commands, e-mail: user-h...@commons.apache.org
Re: [configuration] Re: Space or single quote as a value in properties files
Please file abug in JIRA here : https://issues.apache.org/jira/browse/CONFIGURATION, I'm sure someone will take care of it :) Valentin. Le 05/02/2010 18:26, Asterios Katsifodimos a écrit : Thank you Oliver, However with some simple tests that I've ran, I saw that even XMLConfiguration does not support this feature. It would be nice to see that as an option in the Apache configuration module, at least for me, its been many times that I need such values in a configuration file. thank you again, -- Asterios On Thu, Feb 4, 2010 at 10:18 PM, Oliver Heger oliver.he...@oliver-heger.dewrote: Am 04.02.2010 17:42, schrieb Asterios Katsifodimos: Hi all, I would like to know if there is a way to set the value of a variable (key) to be the space character in a PropertiesConfiguration file. for example variable = could I use the double quotes to do that? From looking at the code it seems that it is not possible to define a space character as property value. All lines are trimmed after they were read. Unfortunately, double quotes are also not supported. I am not sure, would it make sense to add support for this feature? What would be the exact specification? Don't know whether this helps you, but with XMLConfiguration you can set space characters as property values. Oliver thank you, -- Asterios Katsifodimos INRIA Saclay France - To unsubscribe, e-mail: user-unsubscr...@commons.apache.org For additional commands, e-mail: user-h...@commons.apache.org - To unsubscribe, e-mail: user-unsubscr...@commons.apache.org For additional commands, e-mail: user-h...@commons.apache.org
Test for firsst Derivative in PolynomialFunction ERROR
I have written the attached test using our data for generating a curve function However the first derivative test fails see: testfirstDerivativeComparisonFullPower Either my test is in error or there is a bug in PolynomialFunction class. Roger Ball Creoss Business Solutions - To unsubscribe, e-mail: user-unsubscr...@commons.apache.org For additional commands, e-mail: user-h...@commons.apache.org
[math] Re: Test for firsst Derivative in PolynomialFunction ERROR
Hi Roger, First of all, could you add the [math] marker in the subject line (like I have done) when posting to this list about the commons-math component ? This list is shared among all Apache commons components and such markers help people filtering messages. roger.b...@creoss.com a écrit : I have written the attached test using our data for generating a curve function However the first derivative test fails see: testfirstDerivativeComparisonFullPower Either my test is in error or there is a bug in PolynomialFunction class. The list removes attachements. If you think you have found a bug, please open a Jira issue at http://issues.apache.org/jira/browse/MATH. Once the issue is opened, you will be able to attach your example code to it. Thanks Luc Roger Ball Creoss Business Solutions - To unsubscribe, e-mail: user-unsubscr...@commons.apache.org For additional commands, e-mail: user-h...@commons.apache.org - To unsubscribe, e-mail: user-unsubscr...@commons.apache.org For additional commands, e-mail: user-h...@commons.apache.org
Re: [configuration] Re: Space or single quote as a value in properties files
Am 05.02.2010 18:26, schrieb Asterios Katsifodimos: Thank you Oliver, However with some simple tests that I've ran, I saw that even XMLConfiguration does not support this feature. It would be nice to see that as an option in the Apache configuration module, at least for me, its been many times that I need such values in a configuration file. thank you again, -- Asterios With XMLConfiguration it is actually possible to have whitespace in property values, but you have to tell the XML parser that it should not trim these values. This can be achieved by adding the xml:space attribute on an XML element. Have a look at the following example extracted from our unit tests: space xml:space=preserve blanc /blanc /space The value of the space.blanc property will be a space character. (Note that the xml:space attribute is a standard XML attribute, not a specific extension for XMLConfiguration). Oliver On Thu, Feb 4, 2010 at 10:18 PM, Oliver Heger oliver.he...@oliver-heger.dewrote: Am 04.02.2010 17:42, schrieb Asterios Katsifodimos: Hi all, I would like to know if there is a way to set the value of a variable (key) to be the space character in a PropertiesConfiguration file. for example variable = could I use the double quotes to do that? From looking at the code it seems that it is not possible to define a space character as property value. All lines are trimmed after they were read. Unfortunately, double quotes are also not supported. I am not sure, would it make sense to add support for this feature? What would be the exact specification? Don't know whether this helps you, but with XMLConfiguration you can set space characters as property values. Oliver thank you, -- Asterios Katsifodimos INRIA Saclay France - To unsubscribe, e-mail: user-unsubscr...@commons.apache.org For additional commands, e-mail: user-h...@commons.apache.org - To unsubscribe, e-mail: user-unsubscr...@commons.apache.org For additional commands, e-mail: user-h...@commons.apache.org
Re: Space or single quote as a value in properties files
Asterios Katsifodimos wrote: Hi all, I would like to know if there is a way to set the value of a variable (key) to be the space character in a PropertiesConfiguration file. for example variable = could I use the double quotes to do that? Did you try to enter it as Unicode character? variable=\u0020 - Jörg - To unsubscribe, e-mail: user-unsubscr...@commons.apache.org For additional commands, e-mail: user-h...@commons.apache.org