co.leantechniques.maven.buildtime.MojoExecutionName Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of maven-buildtime-extension Show documentation
Show all versions of maven-buildtime-extension Show documentation
This extension displays the duration of each plugin
to discover why your build is slow.
The newest version!
package co.leantechniques.maven.buildtime;
import java.util.Locale;
import org.apache.maven.plugin.MojoExecution;
public class MojoExecutionName {
private final String name;
public MojoExecutionName(MojoExecution mojoExecution) {
name = String.format(Locale.ENGLISH,
"%s:%s (%s)",
mojoExecution.getArtifactId(),
mojoExecution.getGoal(),
mojoExecution.getExecutionId());
}
public String getName() {
return name;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy