Lines 572-578
Link Here
|
572 |
|
572 |
|
573 |
} |
573 |
} |
574 |
|
574 |
|
575 |
@Messages("ACT_Execute_mod=Execute Goal With Modifiers...") |
575 |
@Messages({"ACT_Execute_mod=Execute Goal With Modifiers...", "ACT_Execute_help=Show Documentation..."}) |
576 |
private static class MojoNode extends AbstractNode { |
576 |
private static class MojoNode extends AbstractNode { |
577 |
|
577 |
|
578 |
|
578 |
|
Lines 595-605
Link Here
|
595 |
} |
595 |
} |
596 |
} |
596 |
} |
597 |
mapp.setGoals(Collections.singletonList(mojo.a.getGroupId() + ":" + mojo.a.getArtifactId() + ":" + mojo.a.getVersion() + ":" + mojo.goal)); |
597 |
mapp.setGoals(Collections.singletonList(mojo.a.getGroupId() + ":" + mojo.a.getArtifactId() + ":" + mojo.a.getVersion() + ":" + mojo.goal)); |
598 |
Action a = ActionProviderImpl.createCustomMavenAction(mojo.prefix + ":" + mojo.goal, mapp, true, Lookup.EMPTY, project); |
598 |
Action runGoalWithModsAction = ActionProviderImpl.createCustomMavenAction(mojo.prefix + ":" + mojo.goal, mapp, true, Lookup.EMPTY, project); |
599 |
a.putValue(Action.NAME, ACT_Execute_mod()); |
599 |
runGoalWithModsAction.putValue(Action.NAME, ACT_Execute_mod()); |
|
|
600 |
|
601 |
|
602 |
//f.e.: help:describe -Dcmd=org.codehaus.mojo:gwt-maven-plugin:1.2:debug -Ddetail |
603 |
NetbeansActionMapping mappForHelpDesc = new NetbeansActionMapping(); |
604 |
|
605 |
mappForHelpDesc.setGoals(Collections.singletonList(String.format("help:describe -Dcmd=%s:%s:%s:%s -Ddetail", mojo.a.getGroupId(), mojo.a.getArtifactId(), mojo.a.getVersion(), mojo.goal))); |
606 |
|
607 |
Action runHelpDescAction = ActionProviderImpl.createCustomMavenAction(String.format("help:describe for %s:%s", mojo.prefix, mojo.goal), mappForHelpDesc, false, Lookup.EMPTY, project); |
608 |
runHelpDescAction.putValue(Action.NAME, ACT_Execute_help()); |
609 |
|
610 |
|
600 |
return new Action[] { |
611 |
return new Action[] { |
601 |
new RunGoalAction(mojo, project), |
612 |
new RunGoalAction(mojo, project), |
602 |
a |
613 |
runGoalWithModsAction, |
|
|
614 |
runHelpDescAction |
603 |
}; |
615 |
}; |
604 |
} |
616 |
} |
605 |
|
617 |
|