Return-Path: Delivered-To: apmail-commons-user-archive@www.apache.org Received: (qmail 89909 invoked from network); 3 Apr 2008 15:47:53 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 3 Apr 2008 15:47:53 -0000 Received: (qmail 62128 invoked by uid 500); 3 Apr 2008 15:47:49 -0000 Delivered-To: apmail-commons-user-archive@commons.apache.org Received: (qmail 62085 invoked by uid 500); 3 Apr 2008 15:47:49 -0000 Mailing-List: contact user-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Jakarta Commons Users List" Delivered-To: mailing list user@commons.apache.org Received: (qmail 62076 invoked by uid 99); 3 Apr 2008 15:47:49 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Apr 2008 08:47:49 -0700 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_HELO_PASS,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [66.49.198.249] (HELO host54.canaca.com) (66.49.198.249) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Apr 2008 15:47:07 +0000 Received: from ottawa-hs-69-20-226-24.s-ip.magma.ca ([69.20.226.24] helo=newdan) by host54.canaca.com with esmtpa (Exim 4.68) (envelope-from ) id 1JhReo-0004ge-Kp for user@commons.apache.org; Thu, 03 Apr 2008 11:47:18 -0400 Reply-To: From: "Daniel Tripp" To: "'Jakarta Commons Users List'" References: <006201c894fb$eabbd6a0$bb00a8c0@newdan> <006e01c894fe$31658540$bb00a8c0@newdan> <25aac9fc0804021456n70dffc4bg5c06075802f566b6@mail.gmail.com> <008801c89510$5abc3bc0$bb00a8c0@newdan> <25aac9fc0804021540ia2d4aeft6ac6e58e364c4f00@mail.gmail.com> <000301c895a0$beff5690$0e00a8c0@newdan> Subject: RE: [cli] method to convert a string (which is a whole command line) into an array (of arguments) Date: Thu, 3 Apr 2008 10:48:26 -0500 Organization: MDI Solutions Limited Message-ID: <000c01c895a2$2acfa130$0e00a8c0@newdan> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 In-Reply-To: Thread-Index: AciVoVDsIBLg95WgRYOmSaVjkywL8QAAJwPw X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - host54.canaca.com X-AntiAbuse: Original Domain - commons.apache.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - mdisolutions.com X-Source: X-Source-Args: X-Source-Dir: X-Virus-Checked: Checked by ClamAV on apache.org Well, pass it to Runtime.exec(), yes. -----Original Message----- From: jcarman@carmanconsulting.com [mailto:jcarman@carmanconsulting.com] On Behalf Of James Carman Sent: April 3, 2008 10:42 AM To: Jakarta Commons Users List Subject: Re: [cli] method to convert a string (which is a whole command line) into an array (of arguments) So, are you looking to have your user enter a command line and then you're going to split it yourself and pass that to a static main(String[] args) method? On Thu, Apr 3, 2008 at 11:38 AM, Daniel Tripp wrote: > > Which OS(es) are you targetting? > > Various Windowses, various *nixes. > > > > So are you looking to emulate that? > > Right. > > > > In which case, perhaps the Harmony project has some code that will > do what you want. > > I can't see anything in Harmony that does this, because Harmony just > implements the standard java.* etc. classes, correct? > > Environment variables are another consideration, yes. > > Really I was expecting other people to have run into this same > problem too, and hoping they would chime in. I guess not. > > > > > > --------------------------------------------------------------------- > 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