Search in sources :

Example 11 with CompilerConfigurationImpl

use of com.intellij.compiler.CompilerConfigurationImpl in project android by JetBrains.

the class AndroidCompileUtil method includeAaptGenSourceRootToCompilation.

private static void includeAaptGenSourceRootToCompilation(AndroidFacet facet) {
    final Project project = facet.getModule().getProject();
    final ExcludesConfiguration configuration = ((CompilerConfigurationImpl) CompilerConfiguration.getInstance(project)).getExcludedEntriesConfiguration();
    final ExcludeEntryDescription[] descriptions = configuration.getExcludeEntryDescriptions();
    configuration.removeAllExcludeEntryDescriptions();
    for (ExcludeEntryDescription description : descriptions) {
        final VirtualFile vFile = description.getVirtualFile();
        if (!Comparing.equal(vFile, AndroidRootUtil.getAaptGenDir(facet))) {
            configuration.addExcludeEntryDescription(description);
        }
    }
}
Also used : Project(com.intellij.openapi.project.Project) ExcludesConfiguration(com.intellij.openapi.compiler.options.ExcludesConfiguration) ExcludeEntryDescription(com.intellij.openapi.compiler.options.ExcludeEntryDescription) CompilerConfigurationImpl(com.intellij.compiler.CompilerConfigurationImpl)

Aggregations

CompilerConfigurationImpl (com.intellij.compiler.CompilerConfigurationImpl)11 CompilerWorkspaceConfiguration (com.intellij.compiler.CompilerWorkspaceConfiguration)3 ExcludeEntryDescription (com.intellij.openapi.compiler.options.ExcludeEntryDescription)2 ProcessorConfigProfile (org.jetbrains.jps.model.java.compiler.ProcessorConfigProfile)2 BackendCompiler (com.intellij.compiler.impl.javaCompiler.BackendCompiler)1 JavacConfiguration (com.intellij.compiler.impl.javaCompiler.javac.JavacConfiguration)1 ExcludesConfiguration (com.intellij.openapi.compiler.options.ExcludesConfiguration)1 Project (com.intellij.openapi.project.Project)1 Sdk (com.intellij.openapi.projectRoots.Sdk)1 Map (java.util.Map)1 MavenProject (org.jetbrains.idea.maven.project.MavenProject)1 ProcessorConfigProfileImpl (org.jetbrains.jps.model.java.impl.compiler.ProcessorConfigProfileImpl)1