use of org.eclipse.ceylon.common.tools.help.CeylonHelpTool in project ceylon by eclipse.
the class HelpToolTests method testHelpDoc.
@Test
public void testHelpDoc() {
ToolModel<CeylonHelpTool> model = pluginLoader.loadToolModel("help");
Assert.assertNotNull(model);
CeylonHelpTool tool = pluginFactory.bindArguments(model, getMainTool(), Arrays.asList("doc"));
tool.run();
}
use of org.eclipse.ceylon.common.tools.help.CeylonHelpTool in project ceylon by eclipse.
the class HelpToolTests method testHelpImportJar.
@Test
public void testHelpImportJar() {
ToolModel<CeylonHelpTool> model = pluginLoader.loadToolModel("help");
Assert.assertNotNull(model);
CeylonHelpTool tool = pluginFactory.bindArguments(model, getMainTool(), Arrays.asList("import-jar"));
tool.run();
}
use of org.eclipse.ceylon.common.tools.help.CeylonHelpTool in project ceylon by eclipse.
the class Usage method printOptions.
private void printOptions(String option) throws Exception {
// Call the help tool to generate the usage
out.flush();
// TODO Because the help tool doesn't understand subcommands
// it is unable to help about options to subcommands
// Can't call rootTool.bootstrap() because that would replace the
// rootTool's toolName, which we need when printing option suggestions
CeylonHelpTool r = new CeylonHelpTool();
r.setToolLoader(rootTool.getPluginLoader());
r.setOptions(option != null ? option : "");
r.run();
}
use of org.eclipse.ceylon.common.tools.help.CeylonHelpTool in project ceylon by eclipse.
the class HelpToolTests method testHelpDocTool.
@Test
public void testHelpDocTool() {
ToolModel<CeylonHelpTool> model = pluginLoader.loadToolModel("help");
Assert.assertNotNull(model);
CeylonHelpTool tool = pluginFactory.bindArguments(model, getMainTool(), Arrays.asList("doc-tool"));
tool.run();
}
Aggregations