Re: [digester] implementation of String-Date for xs:dateTime

2008-05-20 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Sebb, sebb wrote: | Here is the implementation that I developed [for an xs:dateTime converter]. Oddly, | it seems that sometimes the TimeZone is incorrectly set (though the | normalized time appears to be correct) in the resulting Date. Any tips

Re: [digester] implementation of String-Date for xs:dateTime

2008-05-20 Thread [EMAIL PROTECTED]
Christopher Schultz schrieb: Sebb, sebb wrote: | Here is the implementation that I developed [for an xs:dateTime converter]. Oddly, | it seems that sometimes the TimeZone is incorrectly set (though the | normalized time appears to be correct) in the resulting Date. Any tips | would be

[cli2] Negative number arguments seen as options

2008-05-20 Thread Roland Roberts
I just discovered that an option that takes an argument can't provide a negative value, --value -2 is seen as option value followed by option 2. This is true even if I use NumberValidator; I tried that thinking it might provide a hint to the parser. 259 roland cd commons-cli-2.0 260 roland

Re: [cli2] Negative number arguments seen as options

2008-05-20 Thread James Carman
Can you quote it? On Tue, May 20, 2008 at 5:12 PM, Roland Roberts [EMAIL PROTECTED] wrote: I just discovered that an option that takes an argument can't provide a negative value, --value -2 is seen as option value followed by option 2. This is true even if I use NumberValidator; I tried that

Re: [cli2] Negative number arguments seen as options

2008-05-20 Thread Roland Roberts
James Carman wrote: Can you quote it? No. If I do foo --value -2 it works but then 'new Integer( -2) throws NumberException; it doesn't like leading spaces. I can work around that to provide some way to get in negative values, but it just looks like a bug to me. Particularly since I

Re: [cli2] Negative number arguments seen as options

2008-05-20 Thread James Carman
Why the leading space inside the quote? On Tue, May 20, 2008 at 5:51 PM, Roland Roberts [EMAIL PROTECTED] wrote: James Carman wrote: Can you quote it? No. If I do foo --value -2 it works but then 'new Integer( -2) throws NumberException; it doesn't like leading spaces. I can work

Re: [cli2] Negative number arguments seen as options

2008-05-20 Thread James Carman
What type of parser are you using? On Tue, May 20, 2008 at 10:51 PM, Roland Roberts [EMAIL PROTECTED] wrote: James Carman wrote: Why the leading space inside the quote? The first part of the answer was and is NO. Quoting does not help. Single quotes, double quotes, backslashes, nada,