Hi Dominic,

thanks a lot for your reply!

Dominic Mitchell schrieb:
On Mon, Nov 23, 2009 at 3:41 PM, Andreas Hartmann <[email protected] <mailto:[email protected]>> wrote:

    I'm using Cocoon 2.2.
    How do I configure the logging output for my unit tests?

[…]

    * Set up maven to invoke the tests in a forked JVM, and pass in the
      log4j.configuration system property.  Look at the docs for the
      surefire plugin
      
<http://maven.apache.org/plugins/maven-surefire-plugin/examples/system-properties.html>.

I chose this option. Here's what works for me:


      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-surefire-plugin</artifactId>
        <configuration>
          <systemProperties>
            <property>
              <name>log4j.configuration</name>
              <value>file://${project.basedir}/etc/log4j.xml</value>
            </property>
          </systemProperties>
        </configuration>
      </plugin>


Thanks again and best regards,

-- Andreas

--
Andreas Hartmann, CTO
BeCompany GmbH
http://www.becompany.ch
Tel.: +41 (0) 43 818 57 01


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to