[jira] [Comment Edited] (OFBIZ-12868) Replace SvnCheckout in Gradle

2023-12-20 Thread Jacques Le Roux (Jira)


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

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


I wrote above:
bq. To minimise the change, we could decide to still use the scripts but called 
from Gradle... I have not yes tested the performance differences...
There is one advantage to that : the use of the Gradle "instal" l task. Though 
I don't know how this task really works since I can't see any implemented such 
task (nor for uninstal but commented out with no code in rest-api plugin). Do 
we really need it or are the scripts sufficient?


was (Author: jacques.le.roux):
I wrote above:
bq. To minimise the change, we could decide to still use the scripts but called 
from Gradle... I have not yes tested the performance differences...
There is one advantage to that : the use of the Gradle "instal" l task. Though 
I don't know how this task really works since I can't see any implemented such 
task (nor for uninstal but commented out with no code in rest-api plugin). Do 
we really need it?

> 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
> Attachments: OFBIZ-12868-README.patch, OFBIZ-12868-svncheckout.patch, 
> pullAllPluginsSource.bat, pullPluginSource.bat
>
>
> 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)


[jira] [Comment Edited] (OFBIZ-12868) Replace SvnCheckout in Gradle

2023-12-20 Thread Jacques Le Roux (Jira)


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

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


I wrote above:
bq. To minimise the change, we could decide to still use the scripts but called 
from Gradle... I have not yes tested the performance differences...
There is one advantage to that : the use of the Gradle "instal" l task. Though 
I don't know how this task really works since I can't see any implemented such 
task (nor for uninstal but commented out with no code in rest-api plugin). Do 
we really need it?


was (Author: jacques.le.roux):
I wrote above:
bq. To minimise the change, we could decide to still use the scripts but called 
from Gradle... I have not yes tested the performance differences...
There is one advantage to that : the use of the Gradle "instal" l task. Though 
I don't know how this task really works since I can't see any implemented such 
task (not for uninstal but commented out with no code in rest-api plugin). Do 
we really need it?

> 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
> Attachments: OFBIZ-12868-README.patch, OFBIZ-12868-svncheckout.patch, 
> pullAllPluginsSource.bat, pullPluginSource.bat
>
>
> 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)


[jira] [Comment Edited] (OFBIZ-12868) Replace SvnCheckout in Gradle

2023-12-20 Thread Jacques Le Roux (Jira)


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

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


I have decided to not use Gradle but only shell scripts for 3 reasons:
 * To be able to change the current directory an Exec task must be used where 
"workingDir " is accessible. And it comes with some complications I crossed
 * The pullPluginSource and pullAllPluginsSource tasks come also with some 
complications and use dependsOn which is no longer recommended to use most of 
the time: 
[https://melix.github.io/blog/2021/10/gradle-quickie-dependson.html#_conclusion]
 * Last but not least, for these 2 tasks we don't need to use Gradle which is 
much slower than directly using shell scripts (mins vs seconds)

To minimise the change, we could decide to still use the scripts but called 
from Gradle... I have not yes tested the performance differences...

At the moment the 2 new dos/bat scripts ( [^pullPluginSource.bat]  
[^pullAllPluginsSource.bat] ) have yet no bash scripts correspondant
They are quite simple and can be used one after the other in any order.
I prefer to let the work for another person :)
{color:#FF8B00}It should be pushed before January 8, 2024...{color}

Here are also the changes in main build.gradle: [^OFBIZ-12868-svncheckout.patch]


was (Author: jacques.le.roux):
I have decided to not use Gradle but only shell scripts for 3 reasons:
 * To be able to change the current directory an Exec task must be used where 
"workingDir " is accessible. And it comes with some complications I crossed
 * The pullPluginSource and pullAllPluginsSource tasks come also with some 
complications and use dependsOn which is no longer recommended to use most of 
the time: 
[https://melix.github.io/blog/2021/10/gradle-quickie-dependson.html#_conclusion]
 * Last but not least, for these 2 tasks we don't need to use Gradle which is 
much slower than directly using shell scripts (mins vs seconds)

To minimise the change, we could decide to still use the scripts but called 
from Gradle... I have not yes tested the performance differences...

At the moment the 2 new dos/bat scripts () have yet no bash scripts 
correspondant
They are quite simple and can be used one after the other in any order.
I prefer to let the work for another person :)
{color:#FF8B00}It should be pushed before January 8, 2024...{color}

Here are also the changes in main build.gradle: [^OFBIZ-12868-svncheckout.patch]

> 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
> Attachments: OFBIZ-12868-README.patch, OFBIZ-12868-svncheckout.patch, 
> pullAllPluginsSource.bat, pullPluginSource.bat
>
>
> 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)


[jira] [Comment Edited] (OFBIZ-12868) Replace SvnCheckout in Gradle

2023-12-20 Thread Jacques Le Roux (Jira)


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

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


I have decided to not use Gradle but only shell scripts for 3 reasons:
 * To be able to change the current directory an Exec task must be used where 
"workingDir " is accessible. And it comes with some complications I crossed
 * The pullPluginSource and pullAllPluginsSource tasks come also with some 
complications and use dependsOn which is no longer recommended to use most of 
the time: 
[https://melix.github.io/blog/2021/10/gradle-quickie-dependson.html#_conclusion]
 * Last but not least, for these 2 tasks we don't need to use Gradle which is 
much slower than directly using shell scripts (mins vs seconds)

To minimise the change, we could decide to still use the scripts but called 
from Gradle... I have not yes tested the performance differences...

At the moment the 2 new dos/bat scripts () have yet no bash scripts 
correspondant
They are quite simple and can be used one after the other in any order.
I prefer to let the work for another person :)
{color:#FF8B00}It should be pushed before January 8, 2024...{color}

Here are also the changes in main build.gradle: [^OFBIZ-12868-svncheckout.patch]


was (Author: jacques.le.roux):
I have decided to not use Gradle but only shell scripts for 3 reasons:
 * To be able to change the current directory an Exec task must be used where 
"workingDir " is accessible. And it comes with some complications I crossed
 * The pullPluginSource and pullAllPluginsSource tasks come also with some 
complications and use dependsOn which is no longer recommended to use most of 
the time: 
[https://melix.github.io/blog/2021/10/gradle-quickie-dependson.html#_conclusion]
 * Last but not least, for these 2 tasks we don't need to use Gradle which is 
much slower than directly using shell scripts (mins vs seconds)

To minimise the change, we could decide to still use the scripts but called 
from Gradle... I have not yes tested the performance differences...

At the moment the 2 new dos/bat scripts ( ) have yet no bash scripts 
correspondant
They are quite simple and can be used one after the other in any order.
I prefer to let the work for another person :)
{color:#FF8B00}It should be pushed before January 8, 2024...{color}

Here are also the changes in main build.gradle: [^OFBIZ-12868-svncheckout.patch]

> 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
> Attachments: OFBIZ-12868-README.patch, OFBIZ-12868-svncheckout.patch, 
> pullAllPluginsSource.bat, pullPluginSource.bat
>
>
> 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)


[jira] [Comment Edited] (OFBIZ-12868) Replace SvnCheckout in Gradle

2023-12-20 Thread Jacques Le Roux (Jira)


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

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


I have decided to not use Gradle but only shell scripts for 3 reasons:
 * To be able to change the current directory an Exec task must be used where 
"workingDir " is accessible. And it comes with some complications I crossed
 * The pullPluginSource and pullAllPluginsSource tasks come also with some 
complications and use dependsOn which is no longer recommended to use most of 
the time: 
[https://melix.github.io/blog/2021/10/gradle-quickie-dependson.html#_conclusion]
 * Last but not least, for these 2 tasks we don't need to use Gradle which is 
much slower than directly using shell scripts (mins vs seconds)

To minimise the change, we could decide to still use the scripts but called 
from Gradle... I have not yes tested the performance differences...

At the moment the 2 new dos/bat scripts ( ) have yet no bash scripts 
correspondant
They are quite simple and can be used one after the other in any order.
I prefer to let the work for another person :)
{color:#FF8B00}It should be pushed before January 8, 2024...{color}

Here are also the changes in main build.gradle: [^OFBIZ-12868-svncheckout.patch]


was (Author: jacques.le.roux):
bq. Also I have still to handle the branches changes in pulPluginSource

I finally decided to not use Gradle but only shell scripts for 3 reasons:
 * To be able to change the current directory an Exec task must be used where 
"workingDir " is accessible. And it comes with some complications I crossed
 * The pullPluginSource and pullAllPluginsSource tasks come also with some 
complications and use dependsOn which is no longer recommended to use most of 
the time: 
[https://melix.github.io/blog/2021/10/gradle-quickie-dependson.html#_conclusion]
 * Last but not least, for these 2 tasks we don't need to use Gradle which is 
much slower than directly using shell scripts (mins vs seconds)

bq. Note: I have no tested bash scripts, they should be OK, the differences are 
minimal, just passing parameters.

Actually the 2 new dos/bat scripts ( [^pullAllPlugins.bat] and 
[^pullAPlugin.bat] ) have no bash scripts correspondant
They are quite simple and can be used one after the other in any order. 
I prefer to let the work for another person :) 
{color:#FF8B00}It should be pushed before January 8, 2024...{color}

Here are also the changes in main build.gradle: [^OFBIZ-12868-svncheckout.patch]

> 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)


[jira] [Comment Edited] (OFBIZ-12868) Replace SvnCheckout in Gradle

2023-12-20 Thread Jacques Le Roux (Jira)


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

Jacques Le Roux edited comment on OFBIZ-12868 at 12/20/23 9:58 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}}
This was not possible when we were using the SvnCheckout Gradle plugin


was (Author: jacques.le.roux):
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)


[jira] [Comment Edited] (OFBIZ-12868) Replace SvnCheckout in Gradle

2023-12-20 Thread Jacques Le Roux (Jira)


[ 
https://issues.apache.org/jira/browse/OFBIZ-12868?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=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)


[jira] [Comment Edited] (OFBIZ-12868) Replace SvnCheckout in Gradle

2023-12-20 Thread Jacques Le Roux (Jira)


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

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

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


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:  [^gitClonePlugins.bat]  
[^gitClonePlugins.sh] [^pullPluginSource.bat]  [^pullPluginSource.sh]  
Note that bat and sh that are similar and even same for the clone and 
sparse-checkout parts.

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

I have still to work on the pullAllPluginsSource task...

> 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)


[jira] [Comment Edited] (OFBIZ-12868) Replace SvnCheckout in Gradle

2023-12-05 Thread Jacques Le Roux (Jira)


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

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

bq. Also I have still to handle the branches changes in pulPluginSource

I finally decided to not use Gradle but only shell scripts for 3 reasons:
 * To be able to change the current directory an Exec task must be used where 
"workingDir " is accessible. And it comes with some complications I crossed
 * The pullPluginSource and pullAllPluginsSource tasks come also with some 
complications and use dependsOn which is no longer recommended to use most of 
the time: 
[https://melix.github.io/blog/2021/10/gradle-quickie-dependson.html#_conclusion]
 * Last but not least, for these 2 tasks we don't need to use Gradle which is 
much slower than directly using shell scripts (mins vs seconds)

bq. Note: I have no tested bash scripts, they should be OK, the differences are 
minimal, just passing parameters.

Actually the 2 new dos/bat scripts ( [^pullAllPlugins.bat] and 
[^pullAPlugin.bat] ) have no bash scripts correspondant
They are quite simple and can be used one after the other in any order. 
I prefer to let the work for another person :) 
{color:#FF8B00}It should be pushed before January 8, 2024...{color}

Here are also the changes in main build.gradle: [^OFBIZ-12868-svncheckout.patch]


was (Author: jacques.le.roux):
.bq Also I have still to handle the branches changes in pulPluginSource

I finally decided to not use Gradle but only shell scripts for 3 reasons:
 * To be able to change the current directory an Exec task must be used where 
"workingDir " is accessible. And it comes with some complications I crossed
 * The pullPluginSource and pullAllPluginsSource tasks come also with some 
complications and use dependsOn which is no longer recommended to use most of 
the time: 
[https://melix.github.io/blog/2021/10/gradle-quickie-dependson.html#_conclusion]
 * Last but not least, for these 2 tasks we don't need to use Gradle which is 
much slower than directly using shell scripts (mins vs seconds)

.bq Note: I have no tested bash scripts, they should be OK, the differences are 
minimal, just passing parameters.

Actually the 2 new dos/bat scripts ( [^pullAllPlugins.bat] and 
[^pullAPlugin.bat] ) have no bash scripts correspondant
They are quite simple and can be used one after the other in any order. 
I prefer to let the work for another person :) 
{color:#FF8B00}It should be pushed before January 8, 2024...{color}

Here are also the changes in main build.gradle: [^OFBIZ-12868-svncheckout.patch]

> 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: Major
> Attachments: OFBIZ-12868-svncheckout.patch, build.gradle.notworking, 
> gitClonePlugins.bat, gitClonePlugins.patch, gitClonePlugins.sh, 
> pullAPlugin.bat, pullAllPlugins.bat, pullPluginSource.bat, pullPluginSource.sh
>
>
> 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)


[jira] [Comment Edited] (OFBIZ-12868) Replace SvnCheckout in Gradle

2023-12-05 Thread Jacques Le Roux (Jira)


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

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

.bq Also I have still to handle the branches changes in pulPluginSource

I finally decided to not use Gradle but only shell scripts for 3 reasons:
 * To be able to change the current directory an Exec task must be used where 
"workingDir " is accessible. And it comes with some complications I crossed
 * The pullPluginSource and pullAllPluginsSource tasks come also with some 
complications and use dependsOn which is no longer recommended to use most of 
the time: 
[https://melix.github.io/blog/2021/10/gradle-quickie-dependson.html#_conclusion]
 * Last but not least, for these 2 tasks we don't need to use Gradle which is 
much slower than directly using shell scripts (mins vs seconds)

.bq Note: I have no tested bash scripts, they should be OK, the differences are 
minimal, just passing parameters.

Actually the 2 new dos/bat scripts ( [^pullAllPlugins.bat] and 
[^pullAPlugin.bat] ) have no bash scripts correspondant
They are quite simple and can be used one after the other in any order. 
I prefer to let the work for another person :) 
{color:#FF8B00}It should be pushed before January 8, 2024...{color}

Here are also the changes in main build.gradle: [^OFBIZ-12868-svncheckout.patch]


was (Author: jacques.le.roux):
{quote}Also I have still to handle the branches changes in pulPluginSource
{quote}
I finally decided to not use Gradle but only shell scripts for 3 reasons:
 * To be able to change the current directory an Exec task must be used where 
"workingDir " is accessible. And it comes with some complications I crossed
 * The pullPluginSource and pullAllPluginsSource tasks come also with some 
complications and use dependsOn which is no longer recommended to use most of 
the time: 
[https://melix.github.io/blog/2021/10/gradle-quickie-dependson.html#_conclusion]
 * Last but not least, for these 2 tasks we don't need to use Gradle which is 
much slower than directly using shell scripts (mins vs seconds)

{quote}Note: I have no tested bash scripts, they should be OK, the differences 
are minimal, just passing parameters.
{quote}
Actually the 2 new dos/bat scripts ( [^pullAllPlugins.bat] and 
[^pullAPlugin.bat] ) have no bash scripts correspondant
They are quite simple and can be used one after the other in any order. 
I prefer to let the work for another person :) It should be pushed before 
January 8, 2024...



Here are also the changes in main build.gradle: [^OFBIZ-12868-svncheckout.patch]

> 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: Major
> Attachments: OFBIZ-12868-svncheckout.patch, build.gradle.notworking, 
> gitClonePlugins.bat, gitClonePlugins.patch, gitClonePlugins.sh, 
> pullAPlugin.bat, pullAllPlugins.bat, pullPluginSource.bat, pullPluginSource.sh
>
>
> 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)


[jira] [Comment Edited] (OFBIZ-12868) Replace SvnCheckout in Gradle

2023-12-05 Thread Jacques Le Roux (Jira)


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

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

{quote}Also I have still to handle the branches changes in pulPluginSource
{quote}
I finally decided to not use Gradle but only shell scripts for 3 reasons:
 * To be able to change the current directory an Exec task must be used where 
"workingDir " is accessible. And it comes with some complications I crossed
 * The pullPluginSource and pullAllPluginsSource tasks come also with some 
complications and use dependsOn which is no longer recommended to use most of 
the time: 
[https://melix.github.io/blog/2021/10/gradle-quickie-dependson.html#_conclusion]
 * Last but not least, for these 2 tasks we don't need to use Gradle which is 
much slower than directly using shell scripts (mins vs seconds)

{quote}Note: I have no tested bash scripts, they should be OK, the differences 
are minimal, just passing parameters.
{quote}
Actually the 2 new dos/bat scripts ( [^pullAllPlugins.bat] and 
[^pullAPlugin.bat] ) have no bash scripts correspondant
They are quite simple and can be used one after the other in any order. 
I prefer to let the work for another person :) It should be pushed before 
January 8, 2024...



Here are also the changes in main build.gradle: [^OFBIZ-12868-svncheckout.patch]


was (Author: jacques.le.roux):
{quote}Also I have still to handle the branches changes in pulPluginSource
{quote}
I finally decided to not use Gradle but only shell scripts for 3 reasons:
 * To be able to change the current directory an Exec task must be used where 
"workingDir " is accessible. And it comes with some complications I crossed
 * The pullPluginSource and pullAllPluginsSource tasks come also with some 
complications and use dependsOn which is no longer recommended to use most of 
the time: 
[https://melix.github.io/blog/2021/10/gradle-quickie-dependson.html#_conclusion]
 * Last but not least, for these 2 tasks we don't need to use Gradle which is 
much slower than directly using shell scripts (mins vs seconds)

{quote}Note: I have no tested bash scripts, they should be OK, the differences 
are minimal, just passing parameters.
{quote}
Actually the 2 new dos/bat scripts ( [^pullAllPlugins.bat] and 
[^pullAPlugin.bat] ) have no bash scripts correspondant
They are quite simple, but I prefer to let the work for another person :)
They can be used one after the other in any order.

Here are also the changes in main build.gradle: [^OFBIZ-12868-svncheckout.patch]

> 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: Major
> Attachments: OFBIZ-12868-svncheckout.patch, build.gradle.notworking, 
> gitClonePlugins.bat, gitClonePlugins.patch, gitClonePlugins.sh, 
> pullAPlugin.bat, pullAllPlugins.bat, pullPluginSource.bat, pullPluginSource.sh
>
>
> 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)


[jira] [Comment Edited] (OFBIZ-12868) Replace SvnCheckout in Gradle

2023-12-05 Thread Jacques Le Roux (Jira)


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

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

{quote}Also I have still to handle the branches changes in pulPluginSource
{quote}
I finally decided to not use Gradle but only shell scripts for 3 reasons:
 * To be able to change the current directory an Exec task must be used where 
"workingDir " is accessible. And it comes with some complications I crossed
 * The pullPluginSource and pullAllPluginsSource tasks come also with some 
complications and use dependsOn which is no longer recommended to use most of 
the time: 
[https://melix.github.io/blog/2021/10/gradle-quickie-dependson.html#_conclusion]
 * Last but not least, for these 2 tasks we don't need to use Gradle which is 
much slower than directly using shell scripts (mins vs seconds)

{quote}Note: I have no tested bash scripts, they should be OK, the differences 
are minimal, just passing parameters.
{quote}
Actually the 2 new dos/bat scripts ( [^pullAllPlugins.bat] and 
[^pullAPlugin.bat] ) have no bash scripts correspondant
They are quite simple, but I prefer to let the work for another person :)
They can be used one after the other in any order.

Here are also the changes in main build.gradle: [^OFBIZ-12868-svncheckout.patch]


was (Author: jacques.le.roux):
{quote}Also I have still to handle the branches changes in pulPluginSource
{quote}
I finally decided to not use Gradle but only shell scripts for 3 reasons:
 * To be able to change the current directory an Exec task must be used where 
"workingDir " is accessible. And it comes with some complications I crossed
 * The pullPluginSource and pullAllPluginsSource tasks come also with some 
complications and use dependsOn which is no longer recommended to use most of 
the time: 
[https://melix.github.io/blog/2021/10/gradle-quickie-dependson.html#_conclusion]
 * Last but not least, for these 2 tasks we don't need to use Gradle which is 
much slower than directly using shell scripts (mins vs seconds)

{quote}Note: I have no tested bash scripts, they should be OK, the differences 
are minimal, just passing parameters.
{quote}
Actually the 2 new dos/bat scripts ( [^pullAllPlugins.bat] and 
[^pullAPlugin.bat] ) have no bash scripts correspondant
They are quite simple, but I prefer to let the work for another person :)
They can be used one after the other in any order.

Here are also the changes in main build.gradle:

> 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: Major
> Attachments: OFBIZ-12868-svncheckout.patch, build.gradle.notworking, 
> gitClonePlugins.bat, gitClonePlugins.patch, gitClonePlugins.sh, 
> pullAPlugin.bat, pullAllPlugins.bat, pullPluginSource.bat, pullPluginSource.sh
>
>
> 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)


[jira] [Comment Edited] (OFBIZ-12868) Replace SvnCheckout in Gradle

2023-12-05 Thread Jacques Le Roux (Jira)


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

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

{quote}Also I have still to handle the branches changes in pulPluginSource
{quote}
I finally decided to not use Gradle but only shell scripts for 3 reasons:
 * To be able to change the current directory an Exec task must be used where 
"workingDir " is accessible. And it comes with some complications I crossed
 * The pullPluginSource and pullAllPluginsSource tasks come also with some 
complications and use dependsOn which is no longer recommended to use most of 
the time: 
[https://melix.github.io/blog/2021/10/gradle-quickie-dependson.html#_conclusion]
 * Last but not least, for these 2 tasks we don't need to use Gradle which is 
much slower than directly using shell scripts (mins vs seconds)

{quote}Note: I have no tested bash scripts, they should be OK, the differences 
are minimal, just passing parameters.
{quote}
Actually the 2 new dos/bat scripts ( [^pullAllPlugins.bat] and 
[^pullAPlugin.bat] ) have no bash scripts correspondant
They are quite simple, but I prefer to let the work for another person :)
They can be used one after the other in any order.

Here are also the changes in main build.gradle:


was (Author: jacques.le.roux):
bq. Also I have still to handle the branches changes in pulPluginSource
I finally decided to not use Gradle but only shell scripts for 3 reasons:
* To be able to change the current directory an Exec task must be used where 
"workingDir " is accessible. And it comes with some complications I crossed
* The pullPluginSource and pullAllPluginsSource tasks come also with some 
complications and use dependsOn which is no longer recommended to use most of 
the time: 
https://melix.github.io/blog/2021/10/gradle-quickie-dependson.html#_conclusion
* Last but not least, for these 2 tasks we don't need to use Gradle which is 
much slower than directly using shell scripts (mins vs seconds)

bq. Note: I have no tested bash scripts, they should be OK, the differences are 
minimal, just passing parameters.
Actually the 2 new dos/bat scripts ( [^pullAllPlugins.bat]  and  
[^pullAPlugin.bat] ) have no bash scripts correspondant
They are quite simple, but I prefer to let the work for another person :)
They can be used one after the other in any order.







> 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: Major
> Attachments: OFBIZ-12868-svncheckout.patch, build.gradle.notworking, 
> gitClonePlugins.bat, gitClonePlugins.patch, gitClonePlugins.sh, 
> pullAPlugin.bat, pullAllPlugins.bat, pullPluginSource.bat, pullPluginSource.sh
>
>
> 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)


[jira] [Comment Edited] (OFBIZ-12868) Replace SvnCheckout in Gradle

2023-12-01 Thread Jacques Le Roux (Jira)


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

Jacques Le Roux edited comment on OFBIZ-12868 at 12/1/23 11:15 AM:
---

Note: I have no tested bash scripts, they should be OK, the differences are 
minimal, just passing parameters.

Also I have still to handle the branches changes in pulPluginSource


was (Author: jacques.le.roux):
Note: I have no tested bash scripts, they should be OK, the difference are 
minimal, just passing parameters.

> 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: Major
> Attachments: build.gradle.notworking, gitClonePlugins.bat, 
> gitClonePlugins.patch, gitClonePlugins.sh, pullPluginSource.bat, 
> pullPluginSource.sh
>
>
> 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)