JarResourceLoader reads its paths from a property named "resource.path",
which expands to "jar.resource.loader.resource.path". Documentation states
that paths should be defined with "jar.resource.loader.path" like with
FileResourceLoader. It would be good to have a constant
JAR_RESOURCE_LOADER_PATH, which could be referred to from Turbine also as it
needs to redefine local jar paths to be relative to the servlet context. A
constant makes such modifications more reliable (the
FILE_RESOURCE_LOADER_PATH is already used for the corresponding file path
modification).

-- Ilkka

    public void init(Configuration configuration)
    {
        Vector paths = configuration.getVector("resource.path");
        Runtime.info("PATHS SIZE= " + paths.size() );

        for ( int i=0; i<paths.size(); i++ )
        {
            loadJar( (String)paths.get(i) );
        }

        Runtime.info("JarResourceLoader initialized...");
    }

Reply via email to