File tree Expand file tree Collapse file tree 2 files changed +9
-12
lines changed Expand file tree Collapse file tree 2 files changed +9
-12
lines changed Original file line number Diff line number Diff line change @@ -906,18 +906,13 @@ task pullAllPluginsSource(group: ofbizPlugin,
906
906
dependsOn pullPluginsFromSvn
907
907
908
908
task installAllPlugins {
909
- file(" ${ pluginsDir} " ). eachDir { plugin ->
910
- activeComponents(). each { component ->
911
- if (component. name == plugin. name) {
912
- if (subprojectExists(" :plugins:${ plugin.name} " )) {
913
- if (taskExistsInproject(" :plugins:${ plugin.name} " , ' install' )) {
914
- dependsOn " :plugins:${ plugin.name} :install"
915
- doLast { println " installed plugin ${ plugin.name} " }
916
- }
917
- }
918
- }
919
- }
920
- }
909
+ subdirs(file(" ${ pluginsDir} " ))
910
+ .filter(this . isComponentEnabled)
911
+ .filter { taskExistsInproject(" :plugins:${ it.name} " , ' install' ) }
912
+ .forEach({ plugin ->
913
+ dependsOn " :plugins:${ plugin.name} :install"
914
+ doLast { println " installed plugin ${ plugin.name} " }
915
+ })
921
916
}
922
917
doLast {
923
918
gradlewSubprocess([' installAllPlugins' ])
Original file line number Diff line number Diff line change @@ -54,5 +54,7 @@ List<File> activeComponents() {
54
54
}
55
55
56
56
ext {
57
+ subdirs = this . &subdirs
57
58
activeComponents = this . &activeComponents. memoize()
59
+ isComponentEnabled = this . &isComponentEnabled. memoize()
58
60
}
You can’t perform that action at this time.
0 commit comments