Jacques Le Roux created OFBIZ-9275: -------------------------------------- Summary: Add a Gradle task to svn update all plugins Key: OFBIZ-9275 URL: https://issues.apache.org/jira/browse/OFBIZ-9275 Project: OFBiz Issue Type: Improvement Components: Gradle Affects Versions: Trunk Reporter: Jacques Le Roux Priority: Minor Fix For: Upcoming Release
When you svn update the framework, unlike for svn:externals, it does not update the plugins because it's an embedded working copy. So I have tried that w/o success so far: {code} Index: build.gradle =================================================================== --- build.gradle (revision 1788020) +++ build.gradle (working copy) @@ -17,6 +17,7 @@ * under the License. */ import at.bxm.gradleplugins.svntools.tasks.SvnCheckout +import at.bxm.gradleplugins.svntools.tasks.SvnUpdate import org.apache.tools.ant.filters.ReplaceTokens /* ======================================================== @@ -774,6 +775,14 @@ } } +task updateAllPluginsSource(group: ofbizPlugin, + description: 'Update all plugins from source control.') { + + task updatePluginsFromSvn(type: SvnUpdate) { + workspaceDir = "${pluginsDir}" + } +} + // ========== Clean up tasks ========== task cleanCatalina(group: cleanupGroup, description: 'Clean Catalina data in runtime/catalina/work') { doLast { delete "${rootDir}/runtime/catalina/work" } {code} The doc is here https://github.com/martoe/gradle-svntools-plugin/blob/master/docs/SvnUpdate.md https://github.com/martoe/gradle-svntools-plugin/blob/master/src/main/groovy/at/bxm/gradleplugins/svntools/tasks/SvnUpdate.groovy BTW somehow related there is no Gradle svn plugin way to get the status. So you have to move to the plugins directory. A bit tedious, I propose a pluginsStatus.bat script for that (could be in tools but I'll move it in another branch) {code} @echo off cd plugins svn st cd .. {code} If we agree I can add the same .sh -- This message was sent by Atlassian JIRA (v6.3.15#6346)