Package com.intellij.compiler

Examples of com.intellij.compiler.CompilerConfiguration


            }

            ModuleFileIndex index = ModuleRootManager.getInstance(module).getFileIndex();
            List<VirtualFile> toCompile = new ArrayList<VirtualFile>();
            List<VirtualFile> toCompileTests = new ArrayList<VirtualFile>();
            CompilerConfiguration configuration = CompilerConfiguration.getInstance(project);

            if (isAcceptableModuleType(module)) {
                for (VirtualFile file : moduleFiles) {
                    if (shouldCompile(file, configuration)) {
                        (index.isInTestSourceContent(file) ? toCompileTests : toCompile).add(file);
View Full Code Here


        public GenerationItem[] compute() {
            ProjectFileIndex fileIndex = ProjectRootManager.getInstance(context.getProject()).getFileIndex();
            CompileScope compileScope = context.getCompileScope();
            VirtualFile[] files = compileScope.getFiles(JFlexFileType.FILE_TYPE, false);
            List<GenerationItem> items = new ArrayList<GenerationItem>(files.length);
            CompilerConfiguration compilerConfiguration = CompilerConfiguration.getInstance(context.getProject());
            for (VirtualFile file : files) {
                if (context.isMake() && compilerConfiguration.isExcludedFromCompilation(file)) {
                    continue;
                }
                JFlexGenerationItem generationItem = new JFlexGenerationItem(context.getModuleByFile(file), file, fileIndex.isInTestSourceContent(file));
                if (context.isMake()) {
                    File generatedFile = generationItem.getGeneratedFile();
View Full Code Here

    myAnnotationConfigurationInfo2Label.setVisible(!annotationProcessingPossible );
    myAnnotationConfigurationInfo3Label.setVisible(!annotationProcessingPossible );
  }

  private boolean isLombokAnnotationProcessingPossible() {
    final CompilerConfiguration compilerConfiguration = CompilerConfiguration.getInstance(myProject);
    boolean javacCompiler = JAVAC_COMPILER_ID.equals(((CompilerConfigurationImpl) compilerConfiguration).getDefaultCompiler().getId());
    boolean annotationProcessorsEnabled = compilerConfiguration.isAnnotationProcessorsEnabled();
    boolean externBuild = CompilerWorkspaceConfiguration.getInstance(myProject).useOutOfProcessBuild();

    return (externBuild && annotationProcessorsEnabled) || (!externBuild && !annotationProcessorsEnabled && javacCompiler);
  }
View Full Code Here

    @Override
    public GenerationItem[] getGenerationItems(CompileContext compileContext) {
        final ProjectFileIndex fileIndex = ProjectRootManager.getInstance(myProject).getFileIndex();
        final CompileScope compileScope = compileContext.getCompileScope();
        final CompilerConfiguration compilerConfiguration = CompilerConfiguration.getInstance(myProject);
        final VirtualFile[] files = compileScope.getFiles(PbFileType.PROTOBUF_FILE_TYPE, false);
        final List<GenerationItem> generationItems = new ArrayList<GenerationItem>(files.length);
        for (VirtualFile file : files) {
            if (!compilerConfiguration.isExcludedFromCompilation(file)) {
                Module module = compileContext.getModuleByFile(file);
                final PbFacet facet = PbFacet.getInstance(module);
                if (facet != null) { // Generate if a Protobuf facet has been created for the module.
                    if (facet.getConfiguration().isCompilationEnabled()) {
                        generationItems.add(new PbGenerationItem(file, module, fileIndex.isInTestSourceContent(file)));
View Full Code Here

        CompilerUtil.refreshOutputDirectories(outputs, _status == ExitStatus.CANCELLED);
        indicator.setText("");
      }
      if (compileContext.isAnnotationProcessorsEnabled() && !myProject.isDisposed()) {
        final Set<File> genSourceRoots = new THashSet<File>(FileUtil.FILE_HASHING_STRATEGY);
        final CompilerConfiguration config = CompilerConfiguration.getInstance(myProject);
        for (Module module : affectedModules) {
          if (config.getAnnotationProcessingConfiguration(module).isEnabled()) {
            final String path = CompilerPaths.getAnnotationProcessorsGenerationPath(module);
            if (path != null) {
              genSourceRoots.add(new File(path));
            }
          }
View Full Code Here

TOP

Related Classes of com.intellij.compiler.CompilerConfiguration

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.