Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[jetty-users] What are the semantics of WebAppContext.setExtraClasspath

Hi,

Can somebody explain the semantics of WebAppContext.setExtraClasspath() method: http://www.mortbay.org/apidocs/org/mortbay/jetty/webapp/WebAppContext.html#setExtraClasspath(java.lang.String)

I am using jetty and loading a war file to create a webapp. But there is a set of external jars (say in /home/john/common-jars), which should be given preference before the jars in WEB-INF/lib directory of the webapp.

I tried using the setExtraClasspath("/home/john/common-jars") method, and it works, but want to know if this is the correct usage of the API. Is it correct to assume that setExtraClasspath() will always prepend the classpath with the given path?

-amit


Back to the top