added debug statements
This commit is contained in:
parent
4925d66cb1
commit
0dbe8105be
@ -92,9 +92,16 @@ public abstract class AbstractPropertyMojo extends AbstractMojo {
|
|||||||
}
|
}
|
||||||
|
|
||||||
protected final void executeOnCondition(boolean condition) {
|
protected final void executeOnCondition(boolean condition) {
|
||||||
|
if (this.getLog().isDebugEnabled())
|
||||||
|
this.getLog().debug("Condition: " + condition);
|
||||||
|
|
||||||
if (condition && this.trueValue != null) {
|
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);
|
this.project.getProperties().setProperty(this.newProperty, this.trueValue);
|
||||||
} else if (!condition && this.falseValue != null) {
|
} 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);
|
this.project.getProperties().setProperty(this.newProperty, this.falseValue);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user