commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sebb <seb...@gmail.com>
Subject Re: [cli] method to convert a string (which is a whole command line) into an array (of arguments)
Date Wed, 02 Apr 2008 21:56:16 GMT
What exactly are you looking for that is different from split() and CLI?


On 02/04/2008, Daniel Tripp <dtripp@mdisolutions.com> wrote:
> Indeed, Eclipse's way takes about 100 lines of code, and it has an option to
>  treat quotes windows-style or not (which I don't claim to understand.)
>
>
>
>  -----Original Message-----
>  From: jcarman@carmanconsulting.com [mailto:jcarman@carmanconsulting.com] On
>  Behalf Of James Carman
>  Sent: April 2, 2008 3:04 PM
>  To: Jakarta Commons Users List
>  Subject: Re: [cli] method to convert a string (which is a whole command
>  line) into an array (of arguments)
>
>  That won't account for arguments that are surrounded by quotes.
>
>  On Wed, Apr 2, 2008 at 4:02 PM,  <jieryn@gmail.com> wrote:
>  > On Wed, Apr 2, 2008 at 3:58 PM, Daniel Tripp <dtripp@mdisolutions.com>
>  wrote:
>  >  > Hello.  I've been looking for a method to parse a command-line
>  > string into  >  an string-array
>  >
>  >  System.out.println("hello world".split("\\s+"));
>  >
>  >  -jesse
>  >
>  >
>  >
>  >  ---------------------------------------------------------------------
>  >  To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
>  >  For additional commands, e-mail: user-help@commons.apache.org
>  >
>  >
>
>  ---------------------------------------------------------------------
>  To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
>  For additional commands, e-mail: user-help@commons.apache.org
>
>
>  ---------------------------------------------------------------------
>  To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
>  For additional commands, e-mail: user-help@commons.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org


Mime
View raw message