When I compile/test my software on Windows any -D system properties I
specify on the command line (e.g., mvn clean install -Dkey1=value1) are
available inside my JUnit tests by calling the System.getProperty() method
(e.g., System.getProperty("key1") returns "value1").  

However, I noticed that when I run my build on Linux that the properties are
not available.  Specifically, calling System.getProperty("key1") returns
null.  What's going on?  I'm using maven 2.0.9 for both.

Thanks for the help!
-- 
View this message in context: 
http://www.nabble.com/Passing-system-properties-to-JUnit-tests-using-%22-D%22-on-Linux-tp21593651p21593651.html
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to