Skip to main content


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 18:25 Go to next message
Kent Wu is currently offline Kent WuFriend
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 14:38 Go to previous message
David Wegener is currently offline David WegenerFriend
Messages: 1445
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: Thu Mar 28 23:15:05 GMT 2024

Powered by FUDForum. Page generated in 0.02266 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top