yes On 9/13/07, carl.whalley <[EMAIL PROTECTED]> wrote: > > Thanks! Ok I'm getting further. If I use > > <reporting> > <plugins> > <plugin> > <groupId>org.apache.maven.plugins</groupId> > <artifactId>maven-surefire-plugin</artifactId> > <configuration> > <systemProperties> > <property> > <name>foo</name> > <value>bar</value> > </property> > </systemProperties> > </configuration> > </plugin> > </plugins> > </reporting> > > Its picked up. What I need though is to pass the value on the command line > as originally mentioned. I noticed that you can activate a profile based on > the presence of a system property - can I use this to activate the profile > and still get its value as above? > > > Dan Tran wrote: > > > > that wont work, please take a look at maven-surefire-plugin's doco on how > > to > > configure your pom.xml to passin system property into your test > > > > -D > > > > On 9/12/07, carl.whalley <[EMAIL PROTECTED]> wrote: > >> > >> If I use "mvn -Dfoo=bar integration-test" I was expecting > >> System.getProperty("foo") to return "bar" in the invoked tests. It isn't > >> - > >> have I misunderstood this please? Thanks. > >> -- > >> View this message in context: > >> http://www.nabble.com/-M2--Acessing-command-line-properties-from-JUnit-tests-tf4427748s177.html#a12630944 > >> Sent from the Maven - Users mailing list archive at Nabble.com. > >> > >> > >> --------------------------------------------------------------------- > >> To unsubscribe, e-mail: [EMAIL PROTECTED] > >> For additional commands, e-mail: [EMAIL PROTECTED] > >> > >> > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > -- > View this message in context: > http://www.nabble.com/-M2--Acessing-command-line-properties-from-JUnit-tests-tf4427748s177.html#a12650371 > Sent from the Maven - Users mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]