public boolean isInfoEnabled() { return log_.isInfoEnabled(); }
public synchronized void clearIndex() { if (log_.isDebugEnabled()) { log_.debug("clear index"); } File indexDir = new File(indexDirPath_); if (!indexDir.exists()) { indexDir.mkdirs(); if (log_.isInfoEnabled()) { log_.info("CREATE INDEX DIR: " + indexDirPath_); } } IndexWriter writer = null; try { writer = newIndexWriter(true); } catch (IOException ex) { throw new IORuntimeException(ex); } finally { if (writer != null) { try { writer.close(); } catch (IOException ex) { if (log_.isWarnEnabled()) { log_.warn("Can't close index writer", ex); } } } } }
public int getThreshold() { if (!log_.isTraceEnabled()) { return MavenEmbedderLogger.LEVEL_DISABLED; } if (!log_.isDebugEnabled()) { return MavenEmbedderLogger.LEVEL_DEBUG; } if (!log_.isInfoEnabled()) { return MavenEmbedderLogger.LEVEL_DEBUG; } if (!log_.isWarnEnabled()) { return MavenEmbedderLogger.LEVEL_INFO; } if (!log_.isErrorEnabled()) { return MavenEmbedderLogger.LEVEL_WARN; } if (!log_.isFatalEnabled()) { return MavenEmbedderLogger.LEVEL_ERROR; } return MavenEmbedderLogger.LEVEL_FATAL; }
if (log_.isInfoEnabled()) { log_.info("Activating beantable for bean: " + beanName); if (log_.isInfoEnabled()) { log_.info("Activated.");
void stagePlugins() { final Resource pluginsDirectory = kvasir_.getPluginsDirectory(); final Resource stagingDirectory = kvasir_.getStagingDirectory() .getChildResource(Globals.PLUGINS_DIR); if (!stagingDirectory.exists()) { return; } for (final Resource stagingPlugin : stagingDirectory.listResources()) { final String pluginDirectoryName = stagingPlugin.getName(); final Resource target = pluginsDirectory .getChildResource(pluginDirectoryName); if (target.exists()) { ResourceUtils.deleteChildren(target); if (log_.isInfoEnabled()) { log_.info("replace: " + pluginDirectoryName); } } else { target.mkdir(); if (log_.isInfoEnabled()) { log_.info("install: " + pluginDirectoryName); } } ResourceUtils.copy(stagingPlugin, target); ResourceUtils.delete(stagingPlugin, true); } }
if (log_.isInfoEnabled()) { log_.info("SET sen.home=" + senHome); if (!indexDir_.exists()) { indexDir_.mkdirs(); if (log_.isInfoEnabled()) { log_.info("CREATE INDEX DIR: " + indexDir_);