Don't you have 2 tests ?

By default, karaf-pax-exam bootstrap a Karaf per test.

Regards
JB

On 02/18/2013 04:59 PM, Charles Moulliard wrote:
Hi,

When using this config with karaf pax tooling, I see that we have 2
Karaf containers created under (for me) target/exam/unpack

     @Configuration
     public static Option[] configure() {
         return new Option[]{
                 karafDistributionConfiguration().frameworkUrl(

maven().groupId("org.apache.karaf").artifactId("apache-karaf").type("tar.gz").versionAsInProject())
                         //This version doesn't affect the version of
karaf we use

.karafVersion(MavenUtils.getArtifactVersion("org.apache.karaf",
"apache-karaf")).name("Apache Karaf")
                         .unpackDirectory(new File("target/exam/unpack/")),

                 keepRuntimeFolder(),
                 logLevel(LogLevelOption.LogLevel.ERROR),

                 // Load Camel Features
                 loadCamelFeatures(),

...
                 /*  Drools Camel Example */
                 mavenBundle("org.drools.karaf", "drools-example",
"1.0-SNAPSHOT"),
                 felix()
         };

     }

drwxr-xr-x  18 chmoulli  wheel  612 Feb 18 16:51
063a614b-b482-46cc-9198-434c5a351818
drwxr-xr-x  16 chmoulli  wheel  544 Feb 18 16:54
1fb99d1b-010e-4012-ac8f-481e625ae04c

Is there an option that we could use to only create one container ?

Regards,

--
Charles Moulliard
Apache Committer / Sr. Enterprise Architect (RedHat)
Twitter : @cmoulliard | Blog : http://cmoulliard.blogspot.com


--
Jean-Baptiste Onofré
[email protected]
http://blog.nanthrax.net
Talend - http://www.talend.com

Reply via email to