diff --git a/src/main/java/com/inteligr8/maven/conditional/AbstractPropertyMojo.java b/src/main/java/com/inteligr8/maven/conditional/AbstractPropertyMojo.java index a08c1e5..2ecdea6 100644 --- a/src/main/java/com/inteligr8/maven/conditional/AbstractPropertyMojo.java +++ b/src/main/java/com/inteligr8/maven/conditional/AbstractPropertyMojo.java @@ -92,9 +92,16 @@ public abstract class AbstractPropertyMojo extends AbstractMojo { } protected final void executeOnCondition(boolean condition) { + if (this.getLog().isDebugEnabled()) + this.getLog().debug("Condition: " + condition); + if (condition && this.trueValue != null) { + if (this.getLog().isDebugEnabled()) + this.getLog().debug("Settings property: " + this.newProperty + " to '" + this.trueValue + "'"); this.project.getProperties().setProperty(this.newProperty, this.trueValue); } else if (!condition && this.falseValue != null) { + if (this.getLog().isDebugEnabled()) + this.getLog().debug("Settings property: " + this.newProperty + " to '" + this.falseValue + "'"); this.project.getProperties().setProperty(this.newProperty, this.falseValue); } }