ofbiz-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jacques Le Roux (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (OFBIZ-9275) Add a Gradle task to svn update all plugins
Date Wed, 12 Apr 2017 10:01:41 GMT

    [ https://issues.apache.org/jira/browse/OFBIZ-9275?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15965634#comment-15965634
] 

Jacques Le Roux commented on OFBIZ-9275:
----------------------------------------

I tried that and forgot to remove it so was committed and I removed just after at http://svn.apache.org/viewvc/ofbiz/ofbiz-framework/trunk/build.gradle?r1=1790945&r2=1790944&pathrev=1790945

> 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 pluginsStatus.sh



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message