Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » How to escape whitespace in Run Configuration arguments
How to escape whitespace in Run Configuration arguments [message #918086] Thu, 20 September 2012 14:25 Go to next message
Kent Wu is currently offline Kent Wu
Messages: 1
Registered: September 2012
Junior Member
My question is a pretty simple one, but one that I failed to find an answer with on Google.

If i'm passing my main method arguments via the run configurations window, I would list them as: a b c

separated by white space. What if one of the arguments is "brown dog" or any string that contains a space. How do I escape that so that "brown dog" passes as one argument?
Re: How to escape whitespace in Run Configuration arguments [message #918966 is a reply to message #918086] Fri, 21 September 2012 10:38 Go to previous message
David Wegener is currently offline David Wegener
Messages: 1299
Registered: July 2009
Senior Member
On 09/20/2012 01:25 PM, Kent Wu wrote:
> My question is a pretty simple one, but one that I failed to find an
> answer with on Google.
> If i'm passing my main method arguments via the run configurations
> window, I would list them as: a b c
>
> separated by white space. What if one of the arguments is "brown dog" or
> any string that contains a space. How do I escape that so that "brown
> dog" passes as one argument?
The same way you just did in your post. You put quotes around it.
Previous Topic:How to install ADT Plugin
Next Topic:1.4.2 JDK on Mac?
Goto Forum:
  


Current Time: Mon Apr 21 00:36:44 EDT 2014

Powered by FUDForum. Page generated in 0.02144 seconds