Fixed class loading for web applications

git-svn-id: https://simple-build-tool.googlecode.com/svn/trunk@823 d89573ee-9141-11dd-94d4-bdf5e562f29c
This commit is contained in:
dmharrah 2009-06-29 00:50:39 +00:00
parent f4d350af2e
commit ce90bece62
1 changed files with 1 additions and 1 deletions

View File

@ -40,7 +40,7 @@ object JettyRun extends ExitHook
def runJetty() =
{
val baseLoader = this.getClass.getClassLoader
val loader: ClassLoader = new SelectiveLoader(classpathURLs.toArray, baseLoader, "org.mortbay." :: "javax.servlet." :: Nil)
val loader: ClassLoader = new java.net.URLClassLoader(classpathURLs.toArray, baseLoader)
val lazyLoader = new LazyFrameworkLoader(implClassName, Array(FileUtilities.sbtJar.toURI.toURL), loader, baseLoader)
val runner = ModuleUtilities.getObject(implClassName, lazyLoader).asInstanceOf[JettyRun]
runner(configuration, log)