All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.pure4j.maven.MojoCallback Maven / Gradle / Ivy

There is a newer version: 0.3.1
Show newest version
package org.pure4j.maven;

import org.apache.maven.plugin.logging.Log;
import org.pure4j.exception.Pure4JException;
import org.pure4j.processor.Callback;

public class MojoCallback implements Callback {

	Log l;
	boolean hasErrors = false;
	
	public boolean hasErrors() {
		return hasErrors;
	}

	public MojoCallback(Log log) {
		this.l = log;
	}

	@Override
	public void send(String s) {
		l.debug(s);
	}

	@Override
	public void registerError(Pure4JException optional) {
		l.error(optional.getMessage());
		hasErrors = true;
	}

	@Override
	public void registerPure(String signature, Boolean intf, Boolean impl) {
		l.info("Marked Pure: "+signature);
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy