The loader maintains a search path in which it will use to look up resources. The {@link #baseDirectory} is a member of this path.
Files and directories created by the resource loader are made relative to {@link #baseDirectory}.
File dataDirectory = ... GeoServerResourceLoader loader = new GeoServerResourceLoader( dataDirectory ); loader.addSearchLocation( new File( "/WEB-INF/" ) ); loader.addSearchLocation( new File( "/data" ) ); ... File catalog = loader.find( "catalog.xml" );
@author Justin Deoliveira, The Open Planning Project, jdeolive@openplans.org
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|