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);
}
}
}
Aggregations