You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ofbiz.apache.org by "Jacques Le Roux (JIRA)" <ji...@apache.org> on 2019/04/29 18:28:00 UTC

[jira] [Closed] (OFBIZ-9275) Add a Gradle task to svn update all plugins

     [ https://issues.apache.org/jira/browse/OFBIZ-9275?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jacques Le Roux closed OFBIZ-9275.
----------------------------------
    Resolution: Won't Do
      Assignee: Jacques Le Roux

This is not necessary

> 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
>            Assignee: Jacques Le Roux
>            Priority: Minor
>
> 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 pluginsStatus.sh



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)