Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » getenv works but getProperty does not
getenv works but getProperty does not [message #759719] Tue, 29 November 2011 18:27
smaction is currently offline smactionFriend
Messages: 2
Registered: November 2011
Junior Member
I am using Eclipse to write webdriver tests in Java. In the code I had the following line:
String baseUrl = System.getenv("url");

I entered the url under the environment variables in the run configuration and it works fine.

However, to work correctly in maven the statement needs to be:
String testSite = System.getenv("site");
Where do I need to enter the information in Eclipse? Because it is no longer working in the environment variable of the run configuration.

Previous Topic:problem installing svn on Eclipse galileo
Next Topic:Problems maintaining directory structure in a new project
Goto Forum:

Current Time: Thu Jun 17 19:04:18 GMT 2021

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

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

Back to the top