Skip to content

Commit

Permalink
Merge pull request #75 from iamdanfox/drop-log-lines-to-debug
Browse files Browse the repository at this point in the history
Drop several log lines from info to debug
  • Loading branch information
uschi2000 authored Jul 13, 2016
2 parents 69c21a1 + 38e58c7 commit 44707e2
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class BaselineCheckstyle extends AbstractBaselinePlugin {
}

def configureCheckstyle() {
project.logger.info("Baseline: Configuring Checkstyle tasks")
project.logger.debug("Baseline: Configuring Checkstyle tasks")

def configProps = project.checkstyle.configProperties
// Required to enable checkstyle suppressions
Expand Down Expand Up @@ -78,10 +78,10 @@ class BaselineCheckstyle extends AbstractBaselinePlugin {
def configureCheckstyleForEclipse() {
def eclipse = project.plugins.findPlugin "eclipse"
if (eclipse == null) {
project.logger.info "Baseline: Skipping configuring Eclipse for Checkstyle (eclipse not applied)"
project.logger.debug "Baseline: Skipping configuring Eclipse for Checkstyle (eclipse not applied)"
return
}
project.logger.info "Baseline: Configuring Eclipse Checkstyle"
project.logger.debug "Baseline: Configuring Eclipse Checkstyle"
project.eclipse.project {
natures "net.sf.eclipsecs.core.CheckstyleNature"
buildCommand "net.sf.eclipsecs.core.CheckstyleBuilder"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class BaselineFindBugs extends AbstractBaselinePlugin {
}

def configureFindBugs() {
project.logger.info("Baseline: Configuring FindBugs tasks")
project.logger.debug("Baseline: Configuring FindBugs tasks")

// Configure findbugs
project.findbugs {
Expand All @@ -75,10 +75,10 @@ class BaselineFindBugs extends AbstractBaselinePlugin {
// Configure checkstyle settings for Eclipse
def configureFindBugsForEclipse() {
if (!project.plugins.findPlugin(EclipsePlugin)) {
project.logger.info "Baseline: Skipping configuring Eclipse for FindBugs (eclipse not applied)"
project.logger.debug "Baseline: Skipping configuring Eclipse for FindBugs (eclipse not applied)"
return
}
project.logger.info "Baseline: Configuring Eclipse FindBugs"
project.logger.debug "Baseline: Configuring Eclipse FindBugs"
project.eclipse.project {
natures "edu.umd.cs.findbugs.plugin.eclipse.findbugsNature"
buildCommand "edu.umd.cs.findbugs.plugin.eclipse.findbugsBuilder"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,11 +98,11 @@ class BaselineIdea extends AbstractBaselinePlugin {
private void addCheckstyle(node) {
def checkstyle = project.plugins.findPlugin(BaselineCheckstyle)
if (checkstyle == null) {
project.logger.info "Baseline: Skipping IDEA checkstyle configuration since baseline-checkstyle not applied"
project.logger.debug "Baseline: Skipping IDEA checkstyle configuration since baseline-checkstyle not applied"
return
}

project.logger.info "Baseline: Configuring Checkstyle for Idea"
project.logger.debug "Baseline: Configuring Checkstyle for Idea"
def checkstyleFile = "LOCAL_FILE:\$PRJ_DIR\$.baseline/checkstyle/checkstyle.xml"
node.append(new XmlParser().parseText("""
<component name="CheckStyle-IDEA">
Expand All @@ -126,7 +126,7 @@ class BaselineIdea extends AbstractBaselinePlugin {
*/
private void addGit(node) {
if (!project.file(".git").isDirectory()) {
project.logger.info "Baseline: Skipping IDEA Git configuration since .git directory does not exist."
project.logger.debug "Baseline: Skipping IDEA Git configuration since .git directory does not exist."
return
}

Expand Down Expand Up @@ -187,7 +187,7 @@ class BaselineIdea extends AbstractBaselinePlugin {
if (compileJavaTask) {
def javaVersion = compileJavaTask.sourceCompatibility
def jdkVersion = 'JDK_' + javaVersion.replaceAll('\\.', '_')
project.logger.info("BaselineIdea: Configuring IDEA Module for Java version: " + javaVersion)
project.logger.debug("BaselineIdea: Configuring IDEA Module for Java version: " + javaVersion)

if (ideaModel.project != null) {
ideaModel.project.languageLevel = javaVersion
Expand All @@ -198,7 +198,7 @@ class BaselineIdea extends AbstractBaselinePlugin {
it.asNode().component.find { it.@name == 'NewModuleRootManager' }.@LANGUAGE_LEVEL = jdkVersion
}
} else {
project.logger.info("BaselineIdea: No Java version found in sourceCompatibility property.")
project.logger.debug("BaselineIdea: No Java version found in sourceCompatibility property.")
}
}
}

0 comments on commit 44707e2

Please sign in to comment.