mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
build scripts: mention missing module names in error message
This commit is contained in:
@@ -327,14 +327,14 @@ idea.fatal.error.notification=disabled
|
||||
private void checkModules(Collection<String> modules, String fieldName) {
|
||||
def unknownModules = modules.findAll {buildContext.findModule(it) == null}
|
||||
if (!unknownModules.empty) {
|
||||
buildContext.messages.error("The following modules from $fieldName aren't found in the project.")
|
||||
buildContext.messages.error("The following modules from $fieldName aren't found in the project: $unknownModules")
|
||||
}
|
||||
}
|
||||
|
||||
private void checkProjectLibraries(Collection<String> names, String fieldName) {
|
||||
def unknownLibraries = names.findAll {buildContext.project.libraryCollection.findLibrary(it) == null}
|
||||
if (!unknownLibraries.empty) {
|
||||
buildContext.messages.error("The following libraries from $fieldName aren't found in the project.")
|
||||
buildContext.messages.error("The following libraries from $fieldName aren't found in the project: $unknownLibraries")
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user