var dropdown = new PluginName({el:'.dropdown',slideInterval:1000, effect:'fade'});
/** * Returns true if this {@link MojoInfo} wraps the mojo of the given ID tuple. */ public boolean is(String groupId, String artifactId, String mojoName) { return pluginName.matches(groupId,artifactId) && getGoal().equals(mojoName); }
public MojoInfo(MojoExecution mojoExecution, Mojo mojo, PlexusConfiguration configuration, ExpressionEvaluator expressionEvaluator) { this.mojo = mojo; this.mojoExecution = mojoExecution; this.configuration = configuration; this.expressionEvaluator = expressionEvaluator; this.pluginName = new PluginName(mojoExecution.getMojoDescriptor().getPluginDescriptor()); }
/** * Returns true if this {@link MojoInfo} wraps the mojo of the given ID tuple. */ public boolean is(String groupId, String artifactId, String mojoName) { return pluginName.matches(groupId,artifactId) && getGoal().equals(mojoName); }
public MojoInfo(MojoExecution mojoExecution, Mojo mojo, PlexusConfiguration configuration, ExpressionEvaluator expressionEvaluator, long startTime) { // in Maven3 there's no easy way to get the Mojo instance that's being executed, // so we just can't pass it in. if (mojo==null) mojo = new Maven3ProvidesNoAccessToMojo(); this.mojo = mojo; this.mojoExecution = mojoExecution; this.configuration = configuration; this.expressionEvaluator = expressionEvaluator; this.pluginName = new PluginName(mojoExecution.getMojoDescriptor().getPluginDescriptor()); this.startTime = startTime; }
protected boolean isExecutingMojo(MojoInfo mojo) { return mojo.pluginName.matches(PLUGIN_GROUP_ID, PLUGIN_ARTIFACT_ID) && PLUGIN_EXECUTE_GOAL.equals(mojo.getGoal()); }