You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by jj...@lexmark.com on 2005/06/09 23:42:36 UTC
Question about -D
Is the -D option only for sending system properties to Maven itself, or can
I set properties that my testcases can see when I run them via "maven test"
?
In the Eclipse IDE, I can add "-Dmyproperty=foo" to the "VM Arguments" and
my testcase can call System.getProperty() to get the value.
I was trying to achieve the same thing with a Maven command line, like this
but the System.getProperty() and even
System.getProperties().list(System.out); show that it's not set when the
testcase runs.
maven test:single -Dtestcase=com.yadda.SystemPropertyTest
-Dmyproperty=foo
Am I using it wrong or was it even meant for this?
-Jeff
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org