final int port = allocPortForTest();
final String repoAURL = getRepoUrl(port);
// now serve the first repo over HTTP
HttpServer server = startServer(port, repo, false, rq);
try{
// then try to compile only one module (the other being loaded from its car)
result = getCompilerTask(Arrays.asList("-out", destDir, "-rep", repoAURL, "-verbose:cmr", "-cp", getClassPathAsPath()),
"modules/depend/b/module.ceylon", "modules/depend/b/package.ceylon", "modules/depend/b/a.ceylon", "modules/depend/b/B.ceylon").call();
Assert.assertEquals(Boolean.TRUE, result);
}finally{
server.stop(1);
}
carFile = getModuleArchive("com.redhat.ceylon.compiler.java.test.cmr.modules.depend.b", "6.6.6");
assertTrue(carFile.exists());
// make sure it cached the module in the cache repo