FileUtil.delete(destFile("importtest"));
ToolModel<CeylonImportJarTool> model = pluginLoader.loadToolModel("import-jar");
Assert.assertNotNull(model);
try {
CeylonImportJarTool tool = pluginFactory.bindArguments(model, options(
"--descriptor", "test/src/com/redhat/ceylon/tools/test/test-nonexistent-descriptor.xml",
"importtest/1.0", "test/src/com/redhat/ceylon/tools/test/test.jar"));
tool.run();
Assert.fail();
} catch (OptionArgumentException e) {
Assert.assertTrue(e.getCause() instanceof ImportJarException);
String xmlName = "test/src/com/redhat/ceylon/tools/test/test-nonexistent-descriptor.xml";
xmlName = xmlName.replace('/', File.separatorChar);