@BeforeClass
  public static void setUpPython() throws Exception {
    GeoServerResourceLoader loader = new GeoServerResourceLoader(new File("target"));

    python = new Python(loader);
    GeoserverDataDirectory.setResourceLoader(loader);
  }
예제 #2
0
 public void setApplicationContext(ApplicationContext applicationContext) throws BeansException {
   GeoserverDataDirectory.init((WebApplicationContext) applicationContext);
 }
 @AfterClass
 public static void tearDownPython() throws Exception {
   GeoserverDataDirectory.setResourceLoader(null);
 }
예제 #4
0
 /* Attempts to grab the proxy's config file from the data dir.
  * @return  the proxy's configuration's File
  * @throws  ConfigurationException if the config system is busted
  */
 public static File getConfigFile() throws ConfigurationException {
   File dir = GeoserverDataDirectory.findCreateConfigDir(confDirName);
   File proxyConfFile = new File(dir, confFileName);
   return proxyConfFile;
 }