Author: taher Date: Sat Mar 18 14:25:16 2017 New Revision: 1787561 URL: http://svn.apache.org/viewvc?rev=1787561&view=rev Log: Improved: replaced hard coded paths with variable in build.gradle
Modified: ofbiz/ofbiz-framework/trunk/build.gradle Modified: ofbiz/ofbiz-framework/trunk/build.gradle URL: http://svn.apache.org/viewvc/ofbiz/ofbiz-framework/trunk/build.gradle?rev=1787561&r1=1787560&r2=1787561&view=diff ============================================================================== --- ofbiz/ofbiz-framework/trunk/build.gradle (original) +++ ofbiz/ofbiz-framework/trunk/build.gradle Sat Mar 18 14:25:16 2017 @@ -734,7 +734,7 @@ task pullPluginSource(group: ofbizPlugin if (project.hasProperty('pluginId')) { task pullPluginFromSvn(type: SvnCheckout) { svnUrl = "https://svn.apache.org/repos/asf/ofbiz/ofbiz-plugins/trunk/${pluginId}" - workspaceDir = "${rootDir}/plugins/${pluginId}" + workspaceDir = "${pluginsDir}/${pluginId}" } dependsOn pullPluginFromSvn } @@ -747,16 +747,16 @@ task pullAllPluginsSource(group: ofbizPl description: 'Download and install all plugins from source control. Warning! deletes existing plugins') { task deleteBeforePulling { - doLast { delete "${rootDir}/plugins" } + doLast { delete "${pluginsDir}" } } task pullPluginsFromSvn(type: SvnCheckout, dependsOn: deleteBeforePulling) { svnUrl = "https://svn.apache.org/repos/asf/ofbiz/ofbiz-plugins/trunk" - workspaceDir = "${rootDir}/plugins" + workspaceDir = "${pluginsDir}" } dependsOn pullPluginsFromSvn task installAllPlugins { - file("${rootDir}/plugins").eachDir { plugin -> + file("${pluginsDir}").eachDir { plugin -> iterateOverActiveComponents { component -> if (component.name == plugin.name) { if (subprojectExists(":plugins:${plugin.name}")) {