public static CompositeOption defaultLaunchpadOptions()

in src/main/java/org/apache/sling/paxexam/util/SlingPaxOptions.java [99:119]


    public static CompositeOption defaultLaunchpadOptions(String launchpadVersion) {
        final String paxLogLevel = System.getProperty("pax.exam.log.level", "INFO");
        
        final int slingStartLevel = DEFAULT_SLING_START_LEVEL;
        final String telnetPort = System.getProperty(PROP_TELNET_PORT, String.valueOf(getAvailablePort()));
        final String httpPort = System.getProperty(PROP_HTTP_PORT, String.valueOf(getAvailablePort()));
        
        log.info("{}={}", PROP_TELNET_PORT, telnetPort);
        log.info("{}={}", PROP_HTTP_PORT, httpPort);
                
        return new DefaultCompositeOption(
                junitBundles(),
                systemProperty( "org.ops4j.pax.logging.DefaultServiceLog.level" ).value(paxLogLevel),
                SlingPaxOptions.felixRemoteShellBundles(),
                SlingPaxOptions.slingBootstrapBundles(),
                SlingPaxOptions.slingLaunchpadBundles(launchpadVersion),
                CoreOptions.frameworkStartLevel(slingStartLevel),
                CoreOptions.frameworkProperty(PROP_TELNET_PORT).value(telnetPort),
                CoreOptions.frameworkProperty(PROP_HTTP_PORT).value(httpPort)
        );
    }