On Fri, 2006-07-28 at 20:05 +0200, Dennis Lundberg wrote: > Allan Ramirez wrote: > > Hi everyone, > > > > Just updated the docs of the surefire plugin. I hope you dont mind if > > you take a look and give me some feedback about it. Thanks > > > > staging site can be found here > > http://people.apache.org/~aramirez/maven-surefire-plugin/
Definitely an improvement over the prevous docs. The "class loading issues" example page states that childDelegation=true makes "your dependencies take precedence over those in the JDK". It might be nice to be more specific. Classes in the java.* and javax.* packages can never be overridden. The only use for this is so that code in the test classpath can override stuff present in the JDK or its "standard extensions" dir which is not in these restricted packages. This means effectively implementations of the various "service provider" interfaces in java such as the xml parser implementation used by jaxp, the cryptography providers, the socket implementation class. This page also describes the childDelegation option: http://people.apache.org/~aramirez/maven-surefire-plugin/test-mojo.html On the "using system properties" page, it might be nice to mention that only "string valued" maven properties can be passed as system properties. Any attempt to pass any other maven variable type (eg a List or a URL variable) will cause the variable expression to be passed literally (unevaluated). eg <systemProperties> <property> <name>buildDir</name> <value>${project.build.outputDirectory}</value> </property> </systemProperties> will literally pass "${project.build.outputDirectory}" because the value of that expression is a File, not a String. If there is a way to map non-string values to strings so they can be passed, that would be great to document. I tried ${project.build.outputDirectory.toString()} but that doesn't work here. And by the way, is it possible to pass configuration properties set on the parent plugin, eg "${surefire.forkMode}"? I experimented but couldn't find a way to refer to properties of the enclosing plugin. Regards, Simon --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]