Skip to content
Permalink
Browse files

02ca904efc Improved: Rewrite ‘getDirectoryInActiveComponentsIfExists’…

… in build script (OFBIZ-10695)

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1854590 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
mthl committed Mar 1, 2019
1 parent 04f2a2c commit f1a143101a8cdfdeeae567d088f82f9aa7f9ae49
Showing with 3 additions and 8 deletions.
  1. +3 −8 build.gradle
@@ -1050,14 +1050,9 @@ def spawnProcess(command) {
}

def getDirectoryInActiveComponentsIfExists(String dirName) {
def dirInComponents = []
activeComponents().each { component ->
def subDir = file(component.toString() + '/' + dirName)
if (subDir.exists()) {
dirInComponents.add subDir
}
}
return dirInComponents
activeComponents()
.collect { file(it.toString() + '/' + dirName) }
.findAll { it.exists() }
}

def deleteAllInDirWithExclusions(dirName, exclusions) {

0 comments on commit f1a1431

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