File logsDir = new File(componentDir, "logs");
FileUtil.createIfDoesntExist(logsDir, true, true);
Config commonProperties = Config.getConfig("common.properties");
commonProperties.set("port.base", String.valueOf(componentConfig.installOnBasePort));
commonProperties.set("baseDir", componentConfig.installOnBaseDir.getPath());
commonProperties.modifyOnDisk(new File(confDir,"common.properties"));
}
private static void installSearcher(String distDir, File installBasePath, SearcherConfig searcherConfig, CacheServerConfig cacheServerConfig) throws IOException {
logger.info("installing searcher");
TarUtil.untarFile(FileUtil.getExistingFile(distDir+"/searcher.tgz", true, false, false), installBasePath);