Uploaded image for project: 'OFBiz'
  1. OFBiz
  2. OFBIZ-9275

Add a Gradle task to svn update all plugins

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Won't Do
    • Affects Version/s: Trunk
    • Fix Version/s: None
    • Component/s: Gradle
    • Labels:
      None

      Description

      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:

      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" }
      

      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)

      @echo off
      cd plugins
      svn st
      cd ..
      

      If we agree I can add the same pluginsStatus.sh

        Attachments

          Activity

            People

            • Assignee:
              jacques.le.roux Jacques Le Roux
              Reporter:
              jacques.le.roux Jacques Le Roux
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: