Package org.apache.felix.karaf.shell.dev.framework

Examples of org.apache.felix.karaf.shell.dev.framework.Framework


    @Option(name = "-nodebug", aliases={"--disable-debug"}, description="Disable debug for the OSGi framework", required = false, multiValued = false)
    boolean nodebug;

    @Override
    protected Object doExecute() throws Exception {
        Framework framework = getFramework();

        if (!debug^nodebug) {
            System.err.printf("Required option missing: use -debug or -nodebug%n");
            return null;
        }
        if (debug) {
            System.out.printf("Enabling debug for OSGi framework (%s)%n", framework.getName());
            framework.enableDebug(new File(KARAF_BASE));
        }
        if (nodebug) {
            System.out.printf("Disabling debug for OSGi framework (%s)%n", framework.getName());
            framework.disableDebug(new File(KARAF_BASE));
        }

        return null//To change body of implemented methods use File | Settings | File Templates.
    }
View Full Code Here

TOP

Related Classes of org.apache.felix.karaf.shell.dev.framework.Framework

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.