Package com.intellij.openapi.roots

Examples of com.intellij.openapi.roots.CompilerModuleExtension


    }

    List<String> codePath = new ArrayList<String>(codePathModules.size() * 2);
    for (Module codePathModule : codePathModules) {
      ModuleRootManager moduleRootManager = ModuleRootManager.getInstance(codePathModule);
      CompilerModuleExtension compilerModuleExt =
        moduleRootManager.getModuleExtension(CompilerModuleExtension.class);
      VirtualFile buildOutput = useTestOutputPath && codePathModule == module ?
        getCompilerOutputPathForTests(compilerModuleExt) :
        compilerModuleExt.getCompilerOutputPath();
      if (buildOutput != null) {
        codePath.add("-pa");
        codePath.add(buildOutput.getCanonicalPath());
      }
      for (VirtualFile contentRoot : ModuleRootManager.getInstance(codePathModule).getContentRoots()) {
View Full Code Here


  }

  public static List<VirtualFile> getAppFilesFromEbinDirectories(Project project) {
    List<VirtualFile> appFiles = new ArrayList<VirtualFile>();
    for (Module m : ModuleManager.getInstance(project).getModules()) {
      CompilerModuleExtension moduleExtension = ModuleRootManager.getInstance(m).getModuleExtension(CompilerModuleExtension.class);
      VirtualFile compilerOutputPath = moduleExtension != null ? moduleExtension.getCompilerOutputPath() : null;

      if (compilerOutputPath == null || !compilerOutputPath.isDirectory()) continue;

      for (VirtualFile file : compilerOutputPath.getChildren()) {
        if (ErlangApplicationInputFilter.isApplicationFile(file)) {
View Full Code Here

    final RunConfiguration runConfig = scope.getUserData(CompileStepBeforeRun.RUN_CONFIGURATION);
    if (runConfig == null) {
      throw new ExecutionException("'Run Configuration' not found. If you're trying to compile without running, that's not yet supported");
    }
    final RustConfiguration rustConfiguration = (RustConfiguration) runConfig;
    final CompilerModuleExtension compilerModuleExtension = CompilerModuleExtension.getInstance(rustConfiguration.getModules()[0]);
    if (compilerModuleExtension == null) {
      throw new ExecutionException("Cannot find compiler module extension from module");
    }

        final String outputPathUrl = CompilerPaths.getModuleOutputPath(rustConfiguration.getModules()[0], false);
View Full Code Here

    private VirtualFile[] libraryRootsFor(final Module module) {
        return LibraryUtil.getLibraryRoots(new Module[]{module}, false, false);
    }

    private List<URL> compilerOutputPathsFor(final Module module) throws MalformedURLException {
        final CompilerModuleExtension compilerModule = CompilerModuleExtension.getInstance(module);
        if (compilerModule != null) {
            final VirtualFile[] roots = compilerModule.getOutputRoots(true);
            return pathsOf(roots);
        }
        return Collections.emptyList();
    }
View Full Code Here

TOP

Related Classes of com.intellij.openapi.roots.CompilerModuleExtension

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.