mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
show warnings for app modules only
This commit is contained in:
@@ -263,7 +263,7 @@ public class AndroidAptCompiler implements SourceGeneratingCompiler {
|
||||
final String[] libPackages = getLibPackages(module, packageName);
|
||||
|
||||
final Module circularDepLibWithSamePackage = AndroidCompileUtil.findCircularDependencyOnLibraryWithSamePackage(facet);
|
||||
if (circularDepLibWithSamePackage != null) {
|
||||
if (circularDepLibWithSamePackage != null && !facet.getConfiguration().LIBRARY_PROJECT) {
|
||||
myContext.addMessage(CompilerMessageCategory.WARNING,
|
||||
AndroidBundle.message("android.compilation.warning.circular.app.dependency",
|
||||
packageName, module.getName(),
|
||||
|
||||
@@ -163,7 +163,7 @@ public class AndroidAutogenerator {
|
||||
final String manifestFileOsPath = FileUtil.toSystemDependentName(manifestFile.getPath());
|
||||
|
||||
final Module circularDepLibWithSamePackage = AndroidCompileUtil.findCircularDependencyOnLibraryWithSamePackage(facet);
|
||||
if (circularDepLibWithSamePackage != null) {
|
||||
if (circularDepLibWithSamePackage != null && !facet.getConfiguration().LIBRARY_PROJECT) {
|
||||
context.addMessage(CompilerMessageCategory.WARNING, AndroidBundle.message("android.compilation.warning.circular.app.dependency",
|
||||
packageName, module.getName(),
|
||||
circularDepLibWithSamePackage.getName()), null, -1, -1);
|
||||
|
||||
Reference in New Issue
Block a user