com.intellij.compiler.impl.ModuleCompileScope Java Examples

The following examples show how to use com.intellij.compiler.impl.ModuleCompileScope. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ExternalSystemTestCase.java    From intellij-quarkus with Eclipse Public License 2.0 5 votes vote down vote up
private CompileScope createModulesCompileScope(final String[] moduleNames) {
  final List<Module> modules = new ArrayList<>();
  for (String name : moduleNames) {
    modules.add(getModule(name));
  }
  return new ModuleCompileScope(myProject, modules.toArray(Module.EMPTY_ARRAY), false);
}
 
Example #2
Source File: PantsIntegrationTestCase.java    From intellij-pants-plugin with Apache License 2.0 4 votes vote down vote up
protected List<CompilerMessage> compileAndGetMessages(Module... modules) throws Exception {
  final ModuleCompileScope scope = new ModuleCompileScope(myProject, modules, true);
  return getCompilerTester().make(scope);
}
 
Example #3
Source File: ArtifactCompileScope.java    From consulo with Apache License 2.0 4 votes vote down vote up
public static ModuleCompileScope createScopeForModulesInArtifacts(@Nonnull Project project, @Nonnull Collection<? extends Artifact> artifacts) {
  final Set<Module> modules = ArtifactUtil.getModulesIncludedInArtifacts(artifacts, project);
  return new ModuleCompileScope(project, modules.toArray(new Module[modules.size()]), true);
}