Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Problem with string and System.getProperty
Problem with string and System.getProperty [message #765289] Tue, 13 December 2011 19:25 Go to next message
smaction is currently offline smactionFriend
Messages: 2
Registered: November 2011
Junior Member
"When I use:
String browse = "FF";

The following code works:
if (browse.equals("FF")) {

driver = new RemoteWebDriver(
new URL("changed so I could post"),
DesiredCapabilities.firefox());
}

If I substitute:

String browse = System.getProperty("browse");

It does not work.

I use system.getProperty elsewhere in my code (not in an IF statement) and it works fine. I have the property in my run configuration arguments tab.

In both cases System.out.println(browse); returns FF .


Scott
Re: Problem with string and System.getProperty [message #765694 is a reply to message #765289] Wed, 14 December 2011 14:40 Go to previous message
Eric Rizzo is currently offline Eric RizzoFriend
Messages: 3070
Registered: July 2009
Senior Member
This forum is for discussing Eclipse, not general Java programming
questions. I don't see how your question is related to Eclipse at all.


On 12/13/11 2:25 PM, smaction wrote:
> "When I use:
> String browse = "FF";
>
> The following code works:
> if (browse.equals("FF")) {
>
> driver = new RemoteWebDriver(
> new URL("changed so I could post"),
> DesiredCapabilities.firefox());
> }
>
> If I substitute:
>
> String browse = System.getProperty("browse");
>
> It does not work.
>
> I use system.getProperty elsewhere in my code (not in an IF statement)
> and it works fine. I have the property in my run configuration arguments
> tab.
>
> In both cases System.out.println(browse); returns FF .
>
>
> Scott
>
Previous Topic:How can I show a view in defined position in plugin.xml programmably?
Next Topic:Unable to export (still)
Goto Forum:
  


Current Time: Thu Sep 19 23:59:22 GMT 2024

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

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

Back to the top