@BeforeClass public static void setUpPython() throws Exception { GeoServerResourceLoader loader = new GeoServerResourceLoader(new File("target")); python = new Python(loader); GeoserverDataDirectory.setResourceLoader(loader); }
public void setApplicationContext(ApplicationContext applicationContext) throws BeansException { GeoserverDataDirectory.init((WebApplicationContext) applicationContext); }
@AfterClass public static void tearDownPython() throws Exception { GeoserverDataDirectory.setResourceLoader(null); }
/* 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; }