提交 dfe89a51 编写于 作者: K kohsuke

adding a convenience method.

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@10589 71c3de6d-444a-0410-be80-ed276b4c234a
上级 b2f6ef21
......@@ -105,4 +105,11 @@ public final class MojoInfo {
mojoExecution.getMojoDescriptor().getPluginDescriptor().getClassRealm().getClassLoader(),
expressionEvaluator));
}
/**
* 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);
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册