Lines 1419-1425
Link Here
|
1419 |
} else { |
1419 |
} else { |
1420 |
if (otherKind == IClasspathEntry.CPE_SOURCE) { |
1420 |
if (otherKind == IClasspathEntry.CPE_SOURCE) { |
1421 |
exclusionPattern += '/'; |
1421 |
exclusionPattern += '/'; |
1422 |
return new JavaModelStatus(IJavaModelStatusConstants.INVALID_CLASSPATH, Messages.bind(Messages.classpath_cannotNestEntryInEntry, new String[] {entryPath.makeRelative().toString(), otherEntry.getPath().makeRelative().toString(), exclusionPattern})); |
1422 |
if (!disableExclusionPatterns) { |
|
|
1423 |
return new JavaModelStatus(IJavaModelStatusConstants.INVALID_CLASSPATH, Messages.bind(Messages.classpath_cannotNestEntryInEntry, new String[] {entryPath.makeRelative().toString(), otherEntry.getPath().makeRelative().toString(), exclusionPattern})); |
1424 |
} else { |
1425 |
return new JavaModelStatus(IJavaModelStatusConstants.INVALID_CLASSPATH, Messages.bind(Messages.classpath_cannotNestEntryInEntryNoExclusion, new String[] {entryPath.makeRelative().toString(), otherEntry.getPath().makeRelative().toString()})); |
1426 |
} |
1423 |
} else { |
1427 |
} else { |
1424 |
return new JavaModelStatus(IJavaModelStatusConstants.INVALID_CLASSPATH, Messages.bind(Messages.classpath_cannotNestEntryInLibrary, new String[] {entryPath.makeRelative().toString(), otherEntry.getPath().makeRelative().toString()})); |
1428 |
return new JavaModelStatus(IJavaModelStatusConstants.INVALID_CLASSPATH, Messages.bind(Messages.classpath_cannotNestEntryInLibrary, new String[] {entryPath.makeRelative().toString(), otherEntry.getPath().makeRelative().toString()})); |
1425 |
} |
1429 |
} |