users@grizzly.java.net

how add folder to GWS classpath ?

From: Survivant 00 <survivant00_at_gmail.com>
Date: Thu, 26 Feb 2009 11:38:25 -0500

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/...


anyone can help ?