Search in sources :

Example 1 with ToolError

use of com.redhat.ceylon.common.tool.ToolError in project ceylon-compiler by ceylon.

the class ClasspathToolTests method testRecursiveDependencies.

@Test
public void testRecursiveDependencies() throws Exception {
    ToolModel<CeylonClasspathTool> model = pluginLoader.loadToolModel("classpath");
    Assert.assertNotNull(model);
    CeylonClasspathTool tool = pluginFactory.bindArguments(model, getMainTool(), Arrays.asList("io.cayla.web/0.3.0"));
    try {
        tool.run();
    } catch (ToolError err) {
        Assert.assertEquals("Module conflict error prevented classpath generation: try running \"ceylon info --suggest-override io.cayla.web/0.3.0\" to display an override file you can use with \"ceylon classpath --overrides override.xml io.cayla.web/0.3.0\" or try with \"ceylon classpath --force io.cayla.web/0.3.0\" to select the latest versions", err.getMessage());
    }
}
Also used : ToolError(com.redhat.ceylon.common.tool.ToolError) CeylonClasspathTool(com.redhat.ceylon.tools.classpath.CeylonClasspathTool) Test(org.junit.Test)

Aggregations

ToolError (com.redhat.ceylon.common.tool.ToolError)1 CeylonClasspathTool (com.redhat.ceylon.tools.classpath.CeylonClasspathTool)1 Test (org.junit.Test)1