Uploaded image for project: 'TomEE'
  1. TomEE
  2. TOMEE-1480

make possibility to provide conf.d-files for arquillian-tomee-remote adapter

    XMLWordPrintableJSON

Details

    Description

      After finding the right parameter "conf" (which really needs more documentation), i stumbled upon a missing feature: being able to have subfolders transfered too.

      This is related to TOMEE-373 i think.

      this is my problem

      / my-project/
      |
      + src/
        |
        + test/
          |
          + tomee/
            |
            + conf/
              |
              + conf.d/cxf-rs.properties
      

      my arquillian.xml

      <?xml version="1.0" encoding="UTF-8" ?>
      <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">
      
          <engine>
              <property name="deploymentExportPath">${project.build.directory}/test-deployments</property>
          </engine>
          
          <container qualifier="tomee" default="true">
              <configuration>
                  <property name="conf">src/test/tomee/conf</property> <!-- this does not work, because i have subfolders... -->
                  <property name="simpleLog">true</property>
                  <property name="httpPort">${tomee.arquillian.httpPort}</property>
                  <property name="stopPort">${tomee.arquillian.stopPort}</property>
                  <property name="ajpPort">${tomee.arquillian.ajpPort}</property>
                  <property name="classifier">${version.tomee.classifier}</property>
                  <property name="dir">${project.build.directory}/apache-tomee</property>
                  <property name="appWorkingDir">${project.build.directory}/arquillian-test-working-dir</property>
                  <property name="catalina_opts">-Djava.awt.headless=true</property> 
                  <property name="properties">
                      intranetportal = new://Resource?type=DataSource
                      intranetportal.jdbcDriver=org.hsqldb.jdbcDriver
                      intranetportal.jdbcUrl=jdbc:hsqldb:mem:tests;DB_CLOSE_DELAY=-1
                      intranetportal.validationQuery = SELECT 1 FROM INFORMATION_SCHEMA.SYSTEM_USERS
                  </property>
              </configuration>
          </container>
      </arquillian>
      

      The goal i want to reach: disable CXF-RS withing testing (but i still want to use tomee-plus).

      Is there another option to do this? I traced it down to this class:
      http://grepcode.com/file/repo1.maven.org/maven2/org.apache.openejb/openejb-loader/4.7.1/org/apache/openejb/loader/Files.java#Files.collect%28java.io.File%2Cjava.io.FileFilter%29

      Attachments

        Activity

          People

            romain.manni-bucau Romain Manni-Bucau
            FibreFoX Danny Althoff
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: