Package org.apache.roller.weblogger.util

Examples of org.apache.roller.weblogger.util.StandaloneWebappClassLoader


        if (!webappDirFile.isDirectory() || !jarsDirFile.isDirectory()) {
            System.err.println("ERROR: webapp.dir and jars.dir must specify existing directories");
            System.exit(-1);
        }       
       
        ClassLoader cl = new StandaloneWebappClassLoader(webappDir, jarsDir, null);
      
        // We're using the new classloader from here on out
        Thread.currentThread().setContextClassLoader(cl);

        // Go!
        Class taskClass = cl.loadClass(taskClassName);
        Runnable task = (Runnable)taskClass.newInstance();
        task.run();
    }
View Full Code Here

TOP

Related Classes of org.apache.roller.weblogger.util.StandaloneWebappClassLoader

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.