options.add("-src");
options.add(srcPath);
options.addAll(defaultOptions);
options.add("-continue");
ErrorCollector c = new ErrorCollector();
CeyloncTaskImpl task = getCompilerTask(options,
c,
subPath + "/dupdecl.ceylon",
subPath + "/moduletest1/module.ceylon",
subPath + "/moduletest1/package.ceylon",
subPath + "/moduletest1/helloworld.ceylon",
subPath + "/hello/hello.ceylon",
subPath + "/hello/module.ceylon",
subPath + "/hello/package.ceylon",
subPath + "/testtest/module.ceylon",
subPath + "/testtest/test.ceylon",
subPath + "/sub/mod/module.ceylon",
subPath + "/sub/mod/run.ceylon",
subPath + "/sub/mod/package.ceylon",
subPath + "/unknownmodule/module.ceylon",
subPath + "/unknownmodule/run.ceylon",
subPath + "/unknownmodule/package.ceylon",
subPath + "/interop/module.ceylon",
subPath + "/interop/interop.ceylon",
subPath + "/jsonly/jsonly.ceylon",
subPath + "/jsonly/module.ceylon",
subPath + "/jsonly/package.ceylon",
subPath + "/modulep/module.ceylon",
subPath + "/modulep/main.ceylon",
subPath + "/browser/dom/main.ceylon",
subPath + "/browser/dom/package.ceylon",
subPath + "/browser/module.ceylon",
subPath + "/browser/main.ceylon",
subPath + "/browser/package.ceylon",
subPath + "/test/InheritanceAndBoxingTest.ceylon",
subPath + "/test/ExceptionTest.ceylon",
subPath + "/test/Foo.ceylon",
subPath + "/test/GameOfLife.ceylon",
subPath + "/test/Bar.ceylon",
subPath + "/test/encoding.ceylon",
subPath + "/test/helloworld.ceylon",
subPath + "/swing/module.ceylon",
subPath + "/swing/run.ceylon",
subPath + "/swing/package.ceylon",
subPath + "/interoprev/module.ceylon",
subPath + "/interoprev/run.ceylon",
subPath + "/interoprev/package.ceylon",
subPath + "/java/hello.ceylon",
subPath + "/java/module.ceylon",
subPath + "/java/package.ceylon",
subPath + "/helloworld.ceylon",
subPath + "/wrongversion/module.ceylon",
subPath + "/wrongversion/run.ceylon",
subPath + "/wrongversion/package.ceylon",
subPath + "/importhello/module.ceylon",
subPath + "/importhello/helloworld.ceylon",
subPath + "/usingimport.ceylon",
// These depend on the error recovery we plan for 1.1
// subPath + "/javaa/bugJvm1290.ceylon",
// subPath + "/javaa/module.ceylon",
// subPath + "/javaa/run.ceylon"
subPath + "/gavinprob/module.ceylon",
subPath + "/gavinprob/main.ceylon",
subPath + "/web_ide_script/module.ceylon",
subPath + "/web_ide_script/hello_world.ceylon",
subPath + "/timetest/module.ceylon",
subPath + "/timetest/test.ceylon"
);
Boolean ret = task.call();
assertFalse(ret);
TreeSet<CompilerError> actualErrors = c.get(Diagnostic.Kind.ERROR);
compareErrors(actualErrors,
new CompilerError(1, "package not found in imported modules: 'java.lang' (define a module and add module import to its module descriptor)"),