Loading src/main/java/com/inteligr8/maven/conditional/AbstractPropertyMojo.java +7 −0 Original line number Diff line number Diff line Loading @@ -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); } } Loading Loading
src/main/java/com/inteligr8/maven/conditional/AbstractPropertyMojo.java +7 −0 Original line number Diff line number Diff line Loading @@ -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); } } Loading