Improved: Use spaces instead of tabs in “common.gradle”
Thanks: Samuel Trégouët for your contribution git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1866972 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
+9
-9
@@ -40,16 +40,16 @@ boolean isComponentEnabled(File componentDir) {
|
||||
|
||||
List<File> activeComponents() {
|
||||
xmlChildren("${rootDir}/framework/base/config/component-load.xml")
|
||||
.map { "${rootDir}/" + it.@'parent-directory' }
|
||||
.map { "${rootDir}/" + it.@'parent-directory' }
|
||||
.flatMap({ dir ->
|
||||
File loader = file(dir + '/component-load.xml')
|
||||
if (loader.exists()) {
|
||||
xmlChildren(loader).map { file dir + '/' + it.@'component-location' }
|
||||
} else {
|
||||
subdirs file(dir)
|
||||
}
|
||||
})
|
||||
.filter(this.&isComponentEnabled)
|
||||
File loader = file(dir + '/component-load.xml')
|
||||
if (loader.exists()) {
|
||||
xmlChildren(loader).map { file dir + '/' + it.@'component-location' }
|
||||
} else {
|
||||
subdirs file(dir)
|
||||
}
|
||||
})
|
||||
.filter(this.&isComponentEnabled)
|
||||
.collect(Collectors.toList()) + file("${rootDir}/framework/start")
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user