use of com.intellij.openapi.compiler.options.ExcludeEntryDescription 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);
}
}
}
use of com.intellij.openapi.compiler.options.ExcludeEntryDescription in project android by JetBrains.
the class AndroidPrecompileTask method excludeAllSourceRoots.
private static void excludeAllSourceRoots(Module module, ExcludesConfiguration configuration, Collection<ExcludeEntryDescription> addedEntries) {
Project project = module.getProject();
VirtualFile[] sourceRoots = ModuleRootManager.getInstance(module).getSourceRoots();
for (VirtualFile sourceRoot : sourceRoots) {
ExcludeEntryDescription description = new ExcludeEntryDescription(sourceRoot, true, false, project);
if (!configuration.containsExcludeEntryDescription(description)) {
configuration.addExcludeEntryDescription(description);
addedEntries.add(description);
}
}
}
Aggregations