void () { String srcRoot = PathUtil.getParentPath(createFile("main/A.java", "class A{}")); JpsModule main = addModule("main", srcRoot); rebuildAllModules(); main.removeSourceRoot(JpsPathUtil.pathToUrl(srcRoot), JavaSourceRootType.SOURCE); doBuild(CompileScopeTestBuilder.make().module(main)).assertSuccessful(); assertDoesntExist(new File(getOrCreateProjectDir(), getModuleOutputRelativePath(main) + "/A.class")); }