guchenbo / simple-build-tool

Automatically exported from code.google.com/p/simple-build-tool
Other
0 stars 0 forks source link

Allow specifying which classes to load with the system classloader in jetty #135

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
See attached patch.

Use it by modifying your project file like this (note the lines that match 
/scalaqlite/, which is a JNI library I'm using under jetty):

  override def jettySystemClasses: Option[Array[String]] =
    Some(Array(
      "java.",
      "javax.",
      "org.mortbay.",
      "org.xml.",
      "org.w3c.",
      "org.apache.commons.logging.",
      "org.apache.log4j.",
      "org.srhea.scalaqlite.",
      "scala."
    ))

  override def jettyClasspath =
     super.jettyClasspath +++
        ("jetty_lib" / "scalaqlite-0.1.0-SNAPSHOT.jar")

For more details, search the mailing list for the subject "Custom WebAppContext 
for jetty-run?".

Sean

Original issue reported on code.google.com by sean.c.r...@gmail.com on 3 Dec 2010 at 7:21

Attachments:

GoogleCodeExporter commented 9 years ago
Now updated to work with sbt 0.7.6.RC0 (commit 84b5bb3).

Original comment by sean.c.r...@gmail.com on 5 May 2011 at 4:31

Attachments: