Commit 0dbe8105 authored by Brian Long's avatar Brian Long
Browse files

added debug statements

parent 4925d66c
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -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);
    	}
    }