Lines Matching refs:cfg

130                 Configuration cfg = null;
137 cfg = Configuration.read(new File(getopt.getOptarg()));
142 if (cfg == null) {
143 cfg = new Configuration();
146 String databaseDriver = cfg.getDatabaseDriver();
147 String databaseURL = cfg.getDatabaseUrl();
154 cfg.setVerbose(false);
158 cfg.setGenerateHtml(false);
167 cfg.setCtags(getopt.getOptarg());
178 cfg.setUrlPrefix(webapp + Prefix.SEARCH_R + '?');
203 cfg.setHistoryCacheInDB(true);
222 cfg.setRemoteScmSupported(true);
224 cfg.setRemoteScmSupported(false);
239 cfg.setCtagsOptionsFile(ctagsOptions.getPath());
243 boolean oldval = cfg.isOptimizeDatabase();
245 cfg.setOptimizeDatabase(true);
247 cfg.setOptimizeDatabase(false);
253 if (oldval != cfg.isOptimizeDatabase()) {
259 cfg.setVerbose(true);
263 cfg.setPrintProgress(true);
273 cfg.setSourceRoot(sourceRoot.getCanonicalPath());
287 cfg.setDataRoot(dataRoot.getCanonicalPath());
291 cfg.getIgnoredNames().add(getopt.getOptarg());
294 cfg.getIncludedNames().add(getopt.getOptarg());
301 cfg.setQuickContextScan(true);
303 cfg.setQuickContextScan(false);
313 cfg.setIndexWordLimit(Integer.parseInt(getopt.getOptarg()));
322 cfg.setAllowLeadingWildcard(true);
324 cfg.setAllowLeadingWildcard(false);
363 cfg.setWebappLAF(getopt.getOptarg());
375 cfg.setScanningDepth(Integer.parseInt(getopt.getOptarg()));
383 cfg.setUsingLuceneLocking(true);
385 cfg.setUsingLuceneLocking(false);
393 cfg.setUserPage(getopt.getOptarg());
396 cfg.setUserPageSuffix(getopt.getOptarg());
415 cfg.setTabSize(tmp);
422 cfg.setChattyStatusPage(true);
425 cfg.setCompressXref(false);
434 cfg.setDirlistUseToday(Boolean.parseBoolean(s));
438 cfg.setDirlistDatePattern(s);
447 cfg.setRepoCmd(clazz.getCanonicalName(),
463 if (cfg.isVerbose()) {
471 if (cfg.isHistoryCacheInDB()) {
482 defaultURL.append(cfg.getDataRoot())
492 cfg.setDatabaseDriver(databaseDriver);
493 cfg.setDatabaseUrl(databaseURL);
496 String file = cfg.getSourceRoot();
511 allowedSymlinks.addAll(cfg.getAllowedSymlinks());
512 cfg.setAllowedSymlinks(allowedSymlinks);
515 RuntimeEnvironment.setConfig(cfg);
522 if (runIndex || (optimizedChanged && cfg.isOptimizeDatabase())) {
591 Configuration cfg = RuntimeEnvironment.getConfig();
592 if (cfg.getDataRoot() == null) {
596 if (cfg.getSourceRootFile() == null) {
610 HistoryGuru.getInstance().addRepositories(cfg.getSourceRoot());
614 List<RepositoryInfo> repos = cfg.getRepositories();
615 String prefix = cfg.getSourceRoot();
622 for (RepositoryInfo info : cfg.getRepositories()) {
642 for (RepositoryInfo info : cfg.getRepositories()) {
659 File files[] = cfg.getSourceRootFile().listFiles();
660 List<Project> projects = cfg.getProjects();
686 p.setTabSize(cfg.getTabSize());
711 for (Project p : cfg.getProjects()) {
713 cfg.setDefaultProject(p);
763 Configuration cfg = RuntimeEnvironment.getConfig();
771 } else if (cfg.isOptimizeDatabase()) {
779 if (project == null && cfg.hasProjects()) {
804 final boolean optimize = cfg.isOptimizeDatabase();
848 String[] cfg = configHost.split(":");
850 if (cfg.length == 2) {
852 InetAddress host = InetAddress.getByName(cfg[0]);
853 RuntimeEnvironment.writeConfig(host, Integer.parseInt(cfg[1]));
861 } else if ( cfg.length > 0 ) {
863 for (String s : cfg) {