public void testUnpackingCwd() throws Exception {
compile("src_tool_test/module.ceylon", "src_tool_test/package.ceylon", "src_tool_test/foo.ceylon");
ToolModel<CeylonSrcTool> model = pluginLoader.loadToolModel("src");
Assert.assertNotNull(model);
CeylonSrcTool tool = pluginFactory.bindArguments(model, Arrays.<String>asList(
"--cacherep", removeRoot(getCachePath()),
"--rep", removeRoot(getOutPath()),
"--cwd", "build",
"--src", "test-source2",
"com.redhat.ceylon.tools.test.test_mod_source.src_tool_test/1.0.0"));
tool.run();
String path = "build/test-source2/com/redhat/ceylon/tools/test/test_mod_source/src_tool_test";
File dir = new File(path);
Assert.assertTrue(dir.isDirectory());
File moduleFile = new File(dir, "module.ceylon");