3 Replies Latest reply on Oct 27, 2012 1:27 PM by grossetieg

    AS7.1.1.Final managed and Arquillian 1.0.3.Final with custom jboss.server.base.dir

    grossetieg

      Hi,

       

      I want to give Arquillian a custom "jboss.server.base.dir" to isolate my integration tests from my default base dir. I use a "application" dir to deploy my full application and "integration-test" dir to run my tests.

      The following configuration works well :

       

      <arquillian xmlns="http://jboss.org/schema/arquillian"
                                    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                                    xsi:schemaLocation="
              http://jboss.org/schema/arquillian
              http://jboss.org/schema/arquillian/arquillian_1_0.xsd">
                <defaultProtocol type="Servlet 3.0" />
                <container qualifier="jbossas-managed" default="true">
                          <configuration>
                                    <property name="javaVmArguments">-Djboss.server.base.dir=../integration-test</property>
                                    <property name="jbossHome">/opt/jboss</property>
                          </configuration>
                </container>
      </arquillian>
      

       

      The problem is that the logging configuration is still on the default dir (standalone). Here is the launching command :

       

      /usr/lib/jvm/jdk1.6.0_32/jre/bin/java, -ea, 
      -Djboss.server.base.dir=../integration-test,
      -Djboss.home.dir=/opt/jboss, 
      -Dorg.jboss.boot.log.file=/opt/jboss/standalone/log/boot.log, 
      -Dlogging.configuration=file:/opt/jboss/standalone/configuration/logging.properties, 
      -Djboss.modules.dir=/opt/jboss/modules, 
      -Djboss.bundles.dir=/opt/jboss/bundles, 
      -jar, /opt/jboss/jboss-modules.jar, -mp, /opt/jboss/modules, -jaxpmodule, javax.xml.jaxp-provider, org.jboss.as.standalone, -server-config, standalone.xml
      

       

      Is it possible to set the "logging.configuration" and the "org.jboss.boot.log.file" realtive to the "jboss.server.base.dir" ?

       

      Cheers,

      Guillaume.