It works,

Thanks for your reactivity

Le 13/08/2018 à 18:25, Mathieu Lirzin a écrit :
> Hello again,
> 
> Mathieu Lirzin <[email protected]> writes:
> 
>>> In my environment (Linux,  openjdk version "1.8.0_171") plugin install 
>>> process does not work any more since this commit (june, 20)
>>>
>>>  def taskExistsInproject(fullyQualifiedProject, taskName) {
>>> -    def taskExists = false
>>> -    subprojects.each { subProject ->
>>> -        if (subProject.getPath().equals(fullyQualifiedProject.toString())) 
>>> {
>>> -            subProject.tasks.each { projTask ->
>>> -                if (taskName.equals(projTask.name)) {
>>> -                    taskExists = true
>>> -                }
>>> -            }
>>> -        }
>>> -    }
>>> -    return taskExists
>>> +    subprojects.stream()
>>> +        .filter { it.path == fullyQualifiedProject.toString() }
>>> +        .flatMap { it.tasks.stream() }
>>> +        .anyMatch taskName.&equals
>>>  }
> 
> The problem is that ‘taskName’ is compares with a task instead of the
> task ‘name’ property.  Here is a patch that fixes the bug.
> 
> 
> 
> 
> Thanks.
> 

Reply via email to