Package org.ops4j.pax.exam.options

Examples of org.ops4j.pax.exam.options.DefaultCompositeOption


     *            virtual machine options
     *
     * @return composite option of virtual machine options
     */
    public static Option vmOptions(final VMOption... vmOptions) {
        return new DefaultCompositeOption(vmOptions);
    }
View Full Code Here


     *            repository options
     *
     * @return composite option of repository options
     */
    public static Option repositories(final RepositoryOption... repositoryOptions) {
        return new DefaultCompositeOption(repositoryOptions);
    }
View Full Code Here

        MavenArtifactUrlReference karafUrl = maven().groupId(KARAF_GROUP_ID)
            .artifactId(KARAF_ARTIFACT_ID)
            .version(karafVersion)
            .type("tar.gz");

        return new DefaultCompositeOption()
            .add(karafDistributionConfiguration()
                .frameworkUrl(karafUrl)
                .karafVersion(karafVersion)
                .name("Apache Karaf")
                .unpackDirectory(new File("target/exam")))
View Full Code Here

    /**
     * Make sure all system properties with a given prefix are also available inside the container
     */
    public static DefaultCompositeOption passThroughAllSystemPropertiesWithPrefix(String prefix) {
        DefaultCompositeOption options = new DefaultCompositeOption();
        for (String name : System.getProperties().stringPropertyNames()) {
            if (name.startsWith(prefix)) {
                options.add(systemProperty(name).value(System.getProperty(name)));
            }
        }
        return options;
    }
View Full Code Here

TOP

Related Classes of org.ops4j.pax.exam.options.DefaultCompositeOption

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.