Skip to content
Permalink
Browse files

Improved: rewrite ‘subprojectExists’ in build script (OFBIZ-10695)

Use ‘anyMatch’ which is semantically equivalent but clearer.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1854585 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
mthl committed Mar 1, 2019
1 parent 4c96d60 commit e0d13085ed8bc440fb046cd2e65701bcc7c5e128
Showing with 1 addition and 3 deletions.
  1. +1 −3 build.gradle
@@ -1099,9 +1099,7 @@ def getJarManifestClasspathForCurrentOs() {

def subprojectExists(fullyQualifiedProject) {
subprojects.stream()
.filter { it.path == fullyQualifiedProject.toString() }
.findAny()
.isPresent()
.anyMatch { it.path == fullyQualifiedProject.toString() }
}

def taskExistsInproject(fullyQualifiedProject, taskName) {

0 comments on commit e0d1308

Please sign in to comment.
You can’t perform that action at this time.