Salut,
Survivant 00 wrote:
> I have a little problem
>
> I want to add dynamically a folder to the classpath.
>
>
> We have that in for creating the classpath from a .war
>
> if (appliPath != null && (appliPath.endsWith(".war") ||
> appliPath.endsWith(".jar"))) {
> file = new File(appliPath);
> appRoot = new URL("jar:file:" + file.getCanonicalPath() + "!/");
> classesURL = new URL("jar:file:" + file.getCanonicalPath() +
> "!/WEB-INF/classes/");
> path = ExpandJar.expand(appRoot);
> }
>
> but in my case I want to generate the same thing from a expanded folder.
>
> I try with hudson, but I got error when trying to load Groovy scripts.
> There are in /WEB-INF/security/...
I guess we need to write a method that will scan WEB-INF and add all the
jar it found to the classpath. Are they inside jars or just classes?
File an RFE and I can take a look as soon as I've finished releasing
Atmosphere 1.0 (can't miss a chance to do publicity :-))
A+
-- Jeanfrancois
>
>
> anyone can help ?
>
>
>
>