i also tried moving the common system properties into the
<configuration> element of the plugin while keeping specific ones into
the configuration of each execution block..

yet without no luck: tests are not executed with the correct properties set.

On 3/14/07, Valerio Schiavoni <[EMAIL PROTECTED]> wrote:
I also tried specifing <id>default</id> (as suggested by jdcasey on
irc), hoping that the configurations would have been merged..but it's
not the case.



On 3/14/07, Valerio Schiavoni <[EMAIL PROTECTED]> wrote:
> hello,
> seems like defining system properties within the configuration of an
> execution block for the surefire plugin is not propertly supported.
>
> Consider this:
>
> <plugin>
>         <groupId>org.apache.maven.plugins</groupId>
>         <artifactId>maven-surefire-plugin</artifactId>
>
>         <executions>
>                 <execution>
>                         <!-- TESTS WITH OPTIMIZATION LEVEL = NONE -->
>                         <id>no-optimization</id>
>                         <goals>
>                                 <goal>test</goal>
>                         </goals>
>                         <phase>test</phase>
>                         <configuration>
>                                 <systemProperties>
>                                         <property>
>                                                 <name>fractal.provider</name>
>                                                 <value>
>                                                         
org.objectweb.fractal.julia.Julia
>                                                 </value>
>                                         </property>
>                                         <property>
>                                                 <name>julia.loader</name>
>                                                 <value>
>                                                         
org.objectweb.fractal.julia.loader.DynamicLoader
>                                                 </value>
>                                         </property>
>                                         <property>
>                                                 
<name>julia.loader.gen.dir</name>
>                                                 <value>
>                                                         
target/test-classes/generated
>                                                 </value>
>                                         </property>
>                                         <property>
>                                                 <name>julia.config</name>
>                                                 <value>julia.cfg</value>
>                                         </property>
>                                 </systemProperties>
>                         </configuration>
>                 </execution>
>
> </plugin>
>
> with the above configuration, tests fail. If I move the configuration
> out of the execution element (still within the plugin), property are
> correctly set, and tests pass. Since i need to configure more than 1
> (say, 4) configurations for the same suite of tests, i wonder wheter
> this is a bug, or a misuse from mine.
>
> Ideas ?
>
> Thanks,
> Valerio
>
> --
> http://jroller.com/page/vschiavoni
>


--
http://valerioschiavoni.blogspot.com
http://jroller.com/page/vschiavoni



--
http://valerioschiavoni.blogspot.com
http://jroller.com/page/vschiavoni

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to