added debug statements

This commit is contained in:
Brian Long 2021-05-19 12:34:53 -04:00
parent 4925d66cb1
commit 0dbe8105be

View File

@ -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);
}
}