Return-Path: Delivered-To: apmail-commons-user-archive@www.apache.org Received: (qmail 82822 invoked from network); 3 Apr 2008 15:42:18 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 3 Apr 2008 15:42:18 -0000 Received: (qmail 48877 invoked by uid 500); 3 Apr 2008 15:42:15 -0000 Delivered-To: apmail-commons-user-archive@commons.apache.org Received: (qmail 48313 invoked by uid 500); 3 Apr 2008 15:42:13 -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 48298 invoked by uid 99); 3 Apr 2008 15:42:13 -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:42:13 -0700 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [64.233.166.176] (HELO py-out-1112.google.com) (64.233.166.176) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Apr 2008 15:41:32 +0000 Received: by py-out-1112.google.com with SMTP id p76so3517728pyb.6 for ; Thu, 03 Apr 2008 08:41:43 -0700 (PDT) Received: by 10.35.73.18 with SMTP id a18mr11603959pyl.50.1207237303733; Thu, 03 Apr 2008 08:41:43 -0700 (PDT) Received: by 10.35.131.1 with HTTP; Thu, 3 Apr 2008 08:41:43 -0700 (PDT) Message-ID: Date: Thu, 3 Apr 2008 11:41:43 -0400 From: "James Carman" Sender: jcarman@carmanconsulting.com To: "Jakarta Commons Users List" Subject: Re: [cli] method to convert a string (which is a whole command line) into an array (of arguments) In-Reply-To: <000301c895a0$beff5690$0e00a8c0@newdan> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline 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> X-Google-Sender-Auth: f4c71be5eaeb52c6 X-Virus-Checked: Checked by ClamAV on apache.org 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