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

Jacques Le Roux edited comment on OFBIZ-12868 at 12/20/23 9:56 AM:
-------------------------------------------------------------------

I Initially looked for using wget, but as explained at 
https://stackoverflow.com/questions/25374358/using-wget-to-download-an-entire-folder-from-github#answer-25379181

bq. The github webpage is just a "frontend" to the git code. To access the 
code, you need to either access the github link via GIT, or you can download 
the various released versions of the software from the Releases page of 
onepage-scroll.

There are also tools to manually download directories as archives, like 
https://minhaskamal.github.io/DownGit/#/home
But I guess we don't want to be dependent of such tools, even if users are free 
to do what they want.

I tried several ways in main build.gradle following links at bottom of 
https://github.blog/2023-01-20-sunsetting-subversion-support/
I stumbled upon the problem of changing the working dir with Gradle. Using "cd" 
does not work, and using workingdir as suggested at 
https://docs.gradle.org/current/dsl/org.gradle.api.tasks.Exec.html works but 
then I was unable to make git works in this environnemt. I tried several 
possible combinations, like prefixing 'git' command with 'cmd' command. It then 
works but w/out results :/  [^build.gradle.notworking]

So I decided to use a simple way: script files. For now only the Windows 
scritps exist:

Unlike a normal checkout, sparse-checkout needs a specific syntax to create 
branches. Trunk is created by default. Here is the way, eg : {{git switch -c 
release18.12 --track origin/release18.12}}


was (Author: jacques.le.roux):
I already have a replacement for the pullPluginSource task, see  
[^gitClonePlugins.patch]

I Initially looked for using wget, but as explained at 
https://stackoverflow.com/questions/25374358/using-wget-to-download-an-entire-folder-from-github#answer-25379181

bq. The github webpage is just a "frontend" to the git code. To access the 
code, you need to either access the github link via GIT, or you can download 
the various released versions of the software from the Releases page of 
onepage-scroll.

There are also tools to manually download directories as archives, like 
https://minhaskamal.github.io/DownGit/#/home
But I guess we don't want to be dependent of such tools, even if users are free 
to do what they want.

I tried several ways in main build.gradle following links at bottom of 
https://github.blog/2023-01-20-sunsetting-subversion-support/
I stumbled upon the problem of changing the working dir with Gradle. Using "cd" 
does not work, and using workingdir as suggested at 
https://docs.gradle.org/current/dsl/org.gradle.api.tasks.Exec.html works but 
then I was unable to make git works in this environnemt. I tried several 
possible combinations, like prefixing 'git' command with 'cmd' command. It then 
works but w/out results :/  [^build.gradle.notworking]

So I decided to use a simple way: script files. For now only the Windows 
scritps exist:

Unlike a normal checkout, sparse-checkout needs a specific syntax to create 
branches. Trunk is created by default. Here is the way, eg : {{git switch -c 
release18.12 --track origin/release18.12}}

> Replace SvnCheckout in Gradle
> -----------------------------
>
>                 Key: OFBIZ-12868
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-12868
>             Project: OFBiz
>          Issue Type: Task
>          Components: GitHub, Gradle
>    Affects Versions: 22.01.01, Upcoming Branch, 18.12.10
>            Reporter: Jacques Le Roux
>            Assignee: Jacques Le Roux
>            Priority: Blocker
>
> As mentionned in 
> https://lists.apache.org/thread/on7n6nsbj0w237sqgmw7bfmw31116wcy
> the SvnCheckout Gradle plugin will not be usable after January 8, 2024.
> So we need a replacement and it's clearly suggested by GitHub in the link 
> above



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to