
org.jsoftware.maven.PatchMojo Maven / Gradle / Ivy
package org.jsoftware.maven;
import org.apache.maven.plugin.MojoExecutionException;
import org.apache.maven.plugin.MojoFailureException;
import org.jsoftware.command.PatchCommand;
/**
* Runs auto-patch mode
* @goal patch
* @author szalik
*/
public class PatchMojo extends CommandSingleConfMojoAdapter {
protected PatchMojo() {
super(new PatchCommand());
}
@Override
public void execute() throws MojoExecutionException, MojoFailureException {
try {
super.execute();
} finally {
getPluginContext().put(getClass().getName() + "-uptodate", command.isSuccess());
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy