[jboss-dev-forums] [JBoss OSGi Development] - Re: JBoss OSGi logging policy

thomas.diesler@jboss.com do-not-reply at jboss.com
Mon Nov 16 21:03:05 EST 2009


anonymous wrote : 
  | I can't run tests from inside eclipse without modifying it and I'm going to
  | forget to revert it from time to time on commits. 
  | 

In every projects pom there is a comment that tells you what properties to set in the eclipse test configurations to achieve the same runtime behaviour as from the command line.

For the Framework that would be


  | -Dlog4j.output.dir=${workspace_loc:jboss-osgi-framework/target}
  | -Dorg.jboss.osgi.framework.launch.bootstrapPath=bootstrap/jboss-osgi-bootstrap.xml
  | 

This is needed because the system properties that are defined on the surefire plugin are unfortunately not used by the eclipse test runs, which is a general problem that applies to all system properties that should be available at test runtime.

I've seen test cases that duplicate the settings from the pom and hard code them into the test. This IMHO is not so good. Instead system properties should go into the eclipse test configuration.

I also run tests from eclipse on a daily basis, once the props are set in eclipse its should be all good.

View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4265977#4265977

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4265977



More information about the jboss-dev-forums mailing list