Skip to content

Commit

Permalink
Improved: Use spaces instead of tabs in “common.gradle”
Browse files Browse the repository at this point in the history
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
  • Loading branch information
mthl committed Sep 15, 2019
1 parent 3236e70 commit c17d392
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions common.gradle
Expand Up @@ -40,16 +40,16 @@ boolean isComponentEnabled(File componentDir) {


List<File> activeComponents() { List<File> activeComponents() {
xmlChildren("${rootDir}/framework/base/config/component-load.xml") xmlChildren("${rootDir}/framework/base/config/component-load.xml")
.map { "${rootDir}/" + it.@'parent-directory' } .map { "${rootDir}/" + it.@'parent-directory' }
.flatMap({ dir -> .flatMap({ dir ->
File loader = file(dir + '/component-load.xml') File loader = file(dir + '/component-load.xml')
if (loader.exists()) { if (loader.exists()) {
xmlChildren(loader).map { file dir + '/' + it.@'component-location' } xmlChildren(loader).map { file dir + '/' + it.@'component-location' }
} else { } else {
subdirs file(dir) subdirs file(dir)
} }
}) })
.filter(this.&isComponentEnabled) .filter(this.&isComponentEnabled)
.collect(Collectors.toList()) + file("${rootDir}/framework/start") .collect(Collectors.toList()) + file("${rootDir}/framework/start")
} }


Expand Down

0 comments on commit c17d392

Please sign in to comment.