Package org.apache.karaf.tooling.exam.options

Examples of org.apache.karaf.tooling.exam.options.KarafDistributionConfigurationFilePutOption


        assertFalse(iterator.hasNext());
    }

    private static Option configFilePut(String configurationFilePath, String key, String value) {
        return new KarafDistributionConfigurationFilePutOption(configurationFilePath, key, value);
    }
View Full Code Here


    @Configuration
    public static Option[] myConfiguration() throws Exception {
        Option[] options =
            new Option[]{
                new KarafDistributionConfigurationFilePutOption("etc/org.openengsb.ekb.cfg",
                    "modelUpdatePropagationMode", "FULLY_ACTIVATED"),
                mavenBundle().groupId("org.ops4j.pax.tinybundles").artifactId("tinybundles").versionAsInProject(),
                editConfigurationFileExtend(FeaturesCfg.BOOT, ",openengsb-connector-example") };
        return combine(baseConfiguration(), options);
    }
View Full Code Here

    private PersistInterface persist;

    @Configuration
    public static Option[] myConfiguration() throws Exception {
        Option[] options = new Option[]{
            new KarafDistributionConfigurationFilePutOption(
                "etc/org.openengsb.ekb.cfg",
                "modelUpdatePropagationMode", "DEACTIVATED"),
            new KarafDistributionConfigurationFilePutOption(
                "etc/org.openengsb.ekb.cfg",
                "persistInterfaceLockingMode", "ACTIVATED"),
            mavenBundle().groupId("org.ops4j.pax.tinybundles").artifactId("tinybundles").versionAsInProject(),
            editConfigurationFileExtend(FeaturesCfg.BOOT, ",openengsb-connector-example")
        };
View Full Code Here

    @Configuration
    public static Option[] myConfiguration() throws Exception {
        Option[] options =
            new Option[]{
                new KarafDistributionConfigurationFilePutOption("etc/org.openengsb.ekb.cfg",
                    "modelUpdatePropagationMode", "DEACTIVATED"),
                new KarafDistributionConfigurationFilePutOption("etc/org.openengsb.ekb.cfg",
                    "persistInterfaceLockingMode", "DEACTIVATED"),
                mavenBundle().groupId("org.ops4j.pax.tinybundles").artifactId("tinybundles").versionAsInProject() };
        return combine(baseConfiguration(), options);
    }
View Full Code Here

                karafDistributionConfiguration()
                        .frameworkUrl(
                                maven().groupId("org.apache.openejb").artifactId("apache-karafee").versionAsInProject().type("tar.gz"))
                        .name("Apache Karafee")
                        .karafVersion(System.getProperty("karaf.version", "2.3.0")),
                new KarafDistributionConfigurationFilePutOption("etc/org.apache.karaf.management.cfg", "rmiRegistryPort", Integer.toString(NetworkUtil.getNextAvailablePort())),
                new KarafDistributionConfigurationFilePutOption("etc/org.apache.karaf.management.cfg", "rmiServerPort", Integer.toString(NetworkUtil.getNextAvailablePort())),
                felix()

                // to debug activate next line and create a remote debug configuration in your IDE
                // , vmOption("-Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=5005")
        );
View Full Code Here

                        .frameworkUrl(karafUrl)
                        .karafVersion(getDistributionVersionAsInProject())
                        .name("Apache Karaf")
                        .unpackDirectory(new File("target/exam")),
                logLevel(LogLevelOption.LogLevel.INFO),
                new KarafDistributionConfigurationFilePutOption("etc/custom.properties",
                        "org.osgi.framework.system.packages.extra",
                        "sun.net.spi.nameservice"),
                keepRuntimeFolder(),
                new MavenArtifactProvisionOption().groupId("com.google.guava").artifactId("guava").versionAsInProject(),
                // use system property to provide project version for tests
View Full Code Here

                karafDistributionConfiguration()
                        .frameworkUrl(
                                maven().groupId("org.apache.openejb").artifactId("apache-karafee").versionAsInProject().type("tar.gz"))
                        .name("Apache Karafee")
                        .karafVersion(System.getProperty("karaf.version")),
                new KarafDistributionConfigurationFilePutOption("etc/org.apache.karaf.management.cfg", "rmiRegistryPort", Integer.toString(NetworkUtil.getNextAvailablePort())),
                new KarafDistributionConfigurationFilePutOption("etc/org.apache.karaf.management.cfg", "rmiServerPort", Integer.toString(NetworkUtil.getNextAvailablePort())),
                felix()

                // to debug activate next line and create a remote debug configuration in your IDE
                // , vmOption("-Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=5005")
        );
View Full Code Here

TOP

Related Classes of org.apache.karaf.tooling.exam.options.KarafDistributionConfigurationFilePutOption

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.