net.sf.debianmaven.CheckMojo Maven / Gradle / Ivy
package net.sf.debianmaven;
import java.io.IOException;
import org.apache.maven.plugin.MojoExecutionException;
/**
* Checks whether the generated package complies to style rules.
*
* Uses external utility: lintian.
*
* @goal check
* @phase package
*/
public class CheckMojo extends AbstractDebianMojo
{
private void runLintian() throws IOException, MojoExecutionException
{
runProcess(new String[]{"lintian", getPackageFile().toString()}, true);
}
protected void executeDebMojo() throws MojoExecutionException
{
try
{
runLintian();
}
catch (IOException e)
{
getLog().error(e.toString());
throw new MojoExecutionException(e.toString());
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy