EA-32629 - : EclipseClasspathReader.readClasspathEntry

This commit is contained in:
anna
2011-12-20 11:47:51 +01:00
parent b10a4f727f
commit e54bbf13a4
@@ -50,6 +50,7 @@ import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import java.util.Set;
import java.util.regex.PatternSyntaxException;
import static org.jetbrains.idea.eclipse.conversion.EPathUtil.*;
@@ -150,7 +151,13 @@ public class EclipseClasspathReader {
}
else {
String srcUrl = VfsUtil.pathToUrl(myRootPath + "/" + path);
final boolean isTestFolder = testPattern != null && testPattern.length() > 0 && path.matches(testPattern);
boolean isTestFolder = false;
try {
isTestFolder = testPattern != null && testPattern.length() > 0 && path.matches(testPattern);
}
catch (PatternSyntaxException e) {
isTestFolder = false;
}
final EclipseProjectFinder.LinkedResource linkedResource = EclipseProjectFinder.findLinkedResource(myRootPath, path);
if (linkedResource != null) {
if (linkedResource.containsPathVariable()) {