/** * Sets a configuration file property for the container's configuration * * This function is currently only used to specify a different context.xml file from the one * located in the installations 'conf' folder. * * @param filePath The path to the new configuration file * @param configDirDest The name of the directory that the configuration file be placed in * @param configFileDestName The name of destination file for the new configuration file */ private void setConfigFile(String filePath, String configDirDest, String configFileDestName) { FileConfig configFile = new FileConfig(); configFile.setFile(filePath); configFile.setToDir(configDirDest); configFile.setToFile(configFileDestName); getConfiguration().setConfigFileProperty(configFile); } }
fc.setToDir(toDir); setFileProperty(fc);
fc.setToDir(toDir); setFileProperty(fc);
configFile.setToDir("dir1"); configuration.setFileProperty(configFile); configuration.doConfigure(null);