public static Option baseConfiguration(String ... path) { return composite( gradleBundle("org.slf4j:slf4j-api"), gradleBundle("org.slf4j:slf4j-simple").noStart(), gradleBundle("org.apache.felix:org.apache.felix.scr"), systemProperty("pax.exam.osgi.unresolved.fail").value("true"), cleanCaches(true), workingDirectory(join(File.separator, "build", "osgi-container", join(File.separator, path))), junitBundles() ); }
/** * Creates a composite option of {@link FrameworkPropertyOption}s. * * @param frameworkProperties * framework property options * * @return composite option of framework property options */ public static Option frameworkProperties(final FrameworkPropertyOption... frameworkProperties) { return composite(frameworkProperties); }
/** * Creates a composite option of {@link BootDelegationOption}s. * * @param packages * boot delegation package options * * @return composite option of boot delegation package options */ public static Option bootDelegationPackages(final BootDelegationOption... packages) { return composite(packages); }
/** * Creates a composite option of {@link SystemPackageOption}s. * * @param packages * system package options * * @return composite option of system package options */ public static Option systemPackages(final SystemPackageOption... packages) { return composite(packages); }
/** * Creates a composite option of {@link ProvisionOption}s. * * @param urls * provision options * * @return composite option of provision options */ public static Option provision(final ProvisionOption<?>... urls) { return composite(urls); }
/** * Creates a composite option of {@link org.ops4j.pax.exam.options.BootClasspathLibraryOption}s. * * @param libraries * boot classpath library options * * @return composite option of boot classpath library options */ public static Option bootClasspathLibraries(final BootClasspathLibraryOption... libraries) { return composite(libraries); }
/** * Creates a composite option of {@link SystemPropertyOption}s. * * @param systemProperties * system property options * * @return composite option of system property options */ public static Option systemProperties(final SystemPropertyOption... systemProperties) { return composite(systemProperties); }
/** * Creates a {@link CleanCachesOption}.value(false) + workingDirectory(folder) options. * * @return options set so it should just be used to kick a single process. Not for test runners. * (they would interfere). */ public static Option serverMode() { return composite(keepCaches(), new ServerModeOption() // marker ); }
public Option felixGogoShellOption() { return CoreOptions.composite( CoreOptions.mavenBundle("org.apache.felix", "org.apache.felix.gogo.runtime", "1.0.4"), // the shell causes ugly VM crashes in tests -> "the forked JVM terminated without properly saying goodbye" // CoreOptions.mavenBundle("org.apache.felix", "org.apache.felix.gogo.shell", "1.0.0"), CoreOptions.mavenBundle("org.apache.felix", "org.apache.felix.gogo.command", "1.0.2")); }
/** * @return Pax-Exam option to enable HTTPS support in the Nexus distribution */ public static Option withHttps(final File keystore) { return composite( editConfigurationFileExtend(NEXUS_PROPERTIES_FILE, "nexus-args", "${jetty.etc}/jetty-https.xml"), replaceConfigurationFile("etc/ssl/keystore.jks", keystore)); }
public Option felixGogoShellOption() { return CoreOptions.composite( CoreOptions.mavenBundle("org.apache.felix", "org.apache.felix.gogo.runtime", "0.16.2"), // the shell causes ugly VM crashes in tests -> "the forked JVM terminated without properly saying goodbye" // CoreOptions.mavenBundle("org.apache.felix", "org.apache.felix.gogo.shell", "1.0.0"), CoreOptions.mavenBundle("org.apache.felix", "org.apache.felix.gogo.command", "0.16.0")); }
/** * @return Pax-Exam option to change the Nexus edition using the given feature XML and name */ public static Option nexusEdition(final MavenUrlReference featureXml, final String name) { return composite(features(featureXml), editConfigurationFilePut(NEXUS_PROPERTIES_FILE, "nexus-edition", name)); }
/** * Creates a {@link CleanCachesOption}.value(false) + workingDirectory(folder) options. * * @return options set so it should just be used to kick a single process. Not for test runners. * (they would interfere). */ public static Option serverMode() { return composite(keepCaches(), new ServerModeOption() // marker ); }
public static Option calabashConfigFile() { File configFile = new File(PathUtils.getBaseDir() + "/src/test/resources/config-calabash.xml"); return composite( configFile.exists() ? systemProperty("org.daisy.pipeline.xproc.configuration").value(configFile.toString()) : null, systemProperty("com.xmlcalabash.config.user").value("") ); }
private Option getVmOptions() { return composite( vmOption("-Xmx2048M"), // Avoid tests stealing focus on OS X vmOption("-Djava.awt.headless=true"), vmOption("-Dfile.encoding=UTF8")); }
public Option ogemaWebFrontentOption() { return CoreOptions.composite( // CoreOptions.mavenBundle("de.twentyeleven.skysail", "org.json-osgi", "20080701"), // CoreOptions.mavenBundle("org.json", "json", "20160212"), CoreOptions.mavenBundle("commons-fileupload", "commons-fileupload", "1.3.1"), CoreOptions.mavenBundle("org.ogema.ref-impl", "framework-administration").version(ogemaVersion).start()); // CoreOptions.mavenBundle("commons-codec", "commons-codec").version("1.10").start()); }
public Option ogemaWebFrontentOption() { return CoreOptions.composite( CoreOptions.mavenBundle("commons-fileupload", "commons-fileupload", "1.3.3"), CoreOptions.mavenBundle("org.ogema.ref-impl", "framework-administration").version(ogemaVersion).start()); }
public static Option spiflyBundles() { return composite( mavenBundle().groupId("org.ow2.asm").artifactId("asm-all").version("5.0"), mavenBundle().groupId("org.apache.aries").artifactId("org.apache.aries.util").version("1.0.0"), mavenBundle().groupId("org.apache.aries.spifly").artifactId("org.apache.aries.spifly.dynamic.bundle").version("1.0.2") ); }
public Option wicketGuiOption() { return CoreOptions.composite( CoreOptions.mavenBundle("org.apache.servicemix.bundles", "org.apache.servicemix.bundles.cglib", "2.2_2") .start(), CoreOptions.mavenBundle("org.apache.servicemix.bundles", "org.apache.servicemix.bundles.javax-inject", "1_1").start(), CoreOptions.mavenBundle("org.apache.wicket", "wicket-util", "6.23.0"), CoreOptions.mavenBundle("org.apache.wicket", "wicket-request", "6.23.0"), CoreOptions.mavenBundle("org.apache.wicket", "wicket-core", "6.23.0"), CoreOptions.mavenBundle("org.ogema.tools", "wicket-gui").version(ogemaVersion), CoreOptions.mavenBundle("org.ogema.tools", "wicket-gui-impl").version(ogemaVersion).start()); }
public Option wicketGuiOption() { return CoreOptions.composite( CoreOptions.mavenBundle("org.apache.servicemix.bundles", "org.apache.servicemix.bundles.cglib", "2.2_2") .start(), CoreOptions.mavenBundle("org.apache.servicemix.bundles", "org.apache.servicemix.bundles.javax-inject", "1_1").start(), CoreOptions.mavenBundle("org.apache.wicket", "wicket-util", "6.23.0"), CoreOptions.mavenBundle("org.apache.wicket", "wicket-request", "6.23.0"), CoreOptions.mavenBundle("org.apache.wicket", "wicket-core", "6.23.0"), CoreOptions.mavenBundle("org.ogema.tools", "wicket-gui").version(ogemaVersion), CoreOptions.mavenBundle("org.ogema.tools", "wicket-gui-impl").version(ogemaVersion).start()); }