diff --git "a/C:\\Users\\rmoquin\\AppData\\Local\\Temp\\TortoiseGit\\Cel5200.tmp\\CellarTestSupport-b921ab5-left.java" "b/C:\\Users\\rmoquin\\Documents\\GitHub\\clones\\karaf-cellar-git\\itests\\src\\test\\java\\org\\apache\\karaf\\cellar\\itests\\CellarTestSupport.java" index bd594f6..e7f4507 100644 --- "a/C:\\Users\\rmoquin\\AppData\\Local\\Temp\\TortoiseGit\\Cel5200.tmp\\CellarTestSupport-b921ab5-left.java" +++ "b/C:\\Users\\rmoquin\\Documents\\GitHub\\clones\\karaf-cellar-git\\itests\\src\\test\\java\\org\\apache\\karaf\\cellar\\itests\\CellarTestSupport.java" @@ -182,14 +182,21 @@ public class CellarTestSupport { maven().groupId(GROUP_ID).artifactId(ARTIFACT_ID).versionAsInProject().type("tar.gz")) .karafVersion(MavenUtils.getArtifactVersion(GROUP_ID, ARTIFACT_ID)).name("Apache Karaf").unpackDirectory(new File("target/paxexam/")); } - - @Configuration + + @Configuration public Option[] config() { - return new Option[]{ - cellarDistributionConfiguration(), keepRuntimeFolder(), logLevel(LogLevelOption.LogLevel.INFO), - editConfigurationFileExtend("etc/system.properties", "cellar.feature.url", maven().groupId("org.apache.karaf.cellar").artifactId("apache-karaf-cellar").versionAsInProject().classifier("features").type("xml").getURL()), - editConfigurationFileExtend("etc/config.properties", "org.apache.aries.blueprint.synchronous", "true") + Option[] options = new Option[] { + cellarDistributionConfiguration(), keepRuntimeFolder(), logLevel(LogLevelOption.LogLevel.INFO), + editConfigurationFileExtend("etc/system.properties", "cellar.feature.url", maven().groupId("org.apache.karaf.cellar").artifactId("apache-karaf-cellar").versionAsInProject().classifier("features").type("xml").getURL()), + editConfigurationFileExtend("etc/config.properties", "org.apache.aries.blueprint.synchronous", "true") }; + String debug = System.getProperty("debugMain"); + if (debug != null) { + int l = options.length; + options = Arrays.copyOf(options, l + 1); + options[l] = KarafDistributionOption.debugConfiguration(); + } + return options; } /**