commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Strachan" <>
Subject Re: [VOTE] move CLI over to commons
Date Thu, 06 Jun 2002 14:19:25 GMT
Incidentally, the type conversion stuff could use ConvertUtils and the
Converter interface of beanutils. It works pretty nicely and already can
handle all the primitive types which would be common conversions I'd expect.

----- Original Message -----
From: "Henri Yandell" <>
To: "Jakarta Commons Developers List" <>
Sent: Thursday, June 06, 2002 3:13 PM
Subject: Re: [VOTE] move CLI over to commons

> To add more detail:
> I'm looking to add two features from my MapCArgs. The first is an
> OptionType concept so that the CLI can do automatic object conversion. So
> -a could have an OptionType of java.lang.Class.class or
> OptionType.CLASS_TYPE and it would automatically convert '-a
>' to the right class, or print a standard error about it
> not being on the classpath.
> The second feature is a pattern to build options instead of lots of object
> calls. So I could do:
> Options opts = PatternOptionBuilder.create("ab:c");
> where a and c are boolean flags and b has a string value. The pattern then
> supports the types in that there's a whole range of characters that can
> be used.
> Options opts = PatternOptionBuilder.create("a!b:!d*h%");
> where h is a number, a is a required boolean, b is a required string and d
> is a collection of files. I'd like to add globbing to 'd' from Jakarta
> ORO.
> Anyway, this might be considered to be a pile of crap, so let me know if
> you think so. Adding them to Commons rather than Sandbox shouldn't be a
> heavy issue, I just have to diff a few classes and c+p.
> Hen
> On Thu, 6 Jun 2002, Henri Yandell wrote:
> > I've some code I'm working on that I'd like to get in before a 1.0
> > release. Having to re-patch it to Commons rather than sandbox is a
> > medium-level hassle. Depends how quickly you want to move it.
> >
> > Hen
> --
> To unsubscribe, e-mail:
> For additional commands, e-mail:

Do You Yahoo!?
Get your free address at

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message