This is an automated email from the ASF dual-hosted git repository.

deepak pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/ofbiz-framework.git


The following commit(s) were added to refs/heads/trunk by this push:
     new b31391760e Fixed delete plugin documentation task, instead of contains 
used proper condition to find the plugin with id
b31391760e is described below

commit b31391760e3bd00fc13929618650cd3c1aab603f
Author: Deepak Dixit <deepak.di...@hotwax.co>
AuthorDate: Fri Dec 23 10:58:02 2022 +0530

    Fixed delete plugin documentation task, instead of contains used proper 
condition to find the plugin with id
---
 build.gradle | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/build.gradle b/build.gradle
index 67c3a6d427..7dc9ee4a22 100644
--- a/build.gradle
+++ b/build.gradle
@@ -615,7 +615,7 @@ task deletePluginDocumentation {
         if (!project.hasProperty('pluginId')) {
             throw new GradleException('Missing property \"pluginId\"')
         }
-        if(!activeComponents().contains(pluginId)) {
+        if(!(activeComponents().stream().anyMatch { it.name == pluginId })) {
             throw new GradleException("Could not find plugin with id 
${pluginId}")
         }
         delete "${buildDir}/asciidoc/plugins/${pluginId}"

Reply via email to