CHE-8674. Delete child projects only at removing project

Signed-off-by: Roman Nikitenko <rnikiten@redhat.com>
6.19.x
Roman Nikitenko 2018-05-21 10:26:45 +03:00 committed by RomanNikitenko
parent 576ce4743a
commit acb0e00a48
1 changed files with 2 additions and 1 deletions

View File

@ -11,6 +11,7 @@
package org.eclipse.che.api.project.server.impl;
import static java.util.stream.Collectors.toSet;
import static org.eclipse.che.api.fs.server.WsPathUtils.SEPARATOR;
import com.google.common.collect.ImmutableSet;
import java.util.Map;
@ -43,7 +44,7 @@ public class ProjectConfigRegistry {
projects
.entrySet()
.stream()
.filter(it -> it.getKey().startsWith(wsPath))
.filter(it -> it.getKey().startsWith(wsPath + SEPARATOR))
.filter(it -> !it.getKey().equals(wsPath))
.map(Entry::getValue)
.collect(toSet());