Christian Müller ha scritto:
> I have to set some system properties for new junit test in jdbc-ng.
>
> 1)
> Trying to use
> System.setProperty("java.naming.factory.initial",
> "org.osjava.sj.SimpleContextFactory")
>
> in the test case works within eclispe, but NOT with a "mvn clean install".
>
> 2)
> mvn -Djava.naming.factory.initial=org.osjava.sj.SimpleContextFactory clean
> install
>
> works, but is not practicable.
>
> 3) Is there a possiblity to include system properties for test cases in the
> pom.xml ?
It is, thought I did not find an example for it, there is some info
in the reference:
http://maven.apache.org/plugins/maven-surefire-plugin/test-mojo.html#systemProperties
This one is an example of setting an env variable.
http://jira.codehaus.org/browse/SUREFIRE-308
Whatever you set in the module's POM will work as an override, an
addition, to what is stated in the parent poms, so it should be safe to
add the variable just in the module you need testing for.
Cheers
Andrea
--
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.
------------------------------------------------------------------------------
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image
processing features enabled. http://p.sf.net/sfu/kodak-com
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel