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


Can somebody explain the semantics of WebAppContext.setExtraClasspath() method:

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?


Back to the top