Lines 3838-3843
Link Here
|
3838 |
} else if (containerPath.segmentCount() < 1) { |
3838 |
} else if (containerPath.segmentCount() < 1) { |
3839 |
throw new ClasspathEntry.AssertionFailedException("Illegal classpath container path: \'" + containerPath.makeRelative().toString() + "\', must have at least one segment (containerID+hints)"); //$NON-NLS-1$//$NON-NLS-2$ |
3839 |
throw new ClasspathEntry.AssertionFailedException("Illegal classpath container path: \'" + containerPath.makeRelative().toString() + "\', must have at least one segment (containerID+hints)"); //$NON-NLS-1$//$NON-NLS-2$ |
3840 |
} |
3840 |
} |
|
|
3841 |
if (accessRules == null) { |
3842 |
accessRules = ClasspathEntry.NO_ACCESS_RULES; |
3843 |
} |
3844 |
if (extraAttributes == null) { |
3845 |
extraAttributes = ClasspathEntry.NO_EXTRA_ATTRIBUTES; |
3846 |
} |
3841 |
return new ClasspathEntry( |
3847 |
return new ClasspathEntry( |
3842 |
IPackageFragmentRoot.K_SOURCE, |
3848 |
IPackageFragmentRoot.K_SOURCE, |
3843 |
IClasspathEntry.CPE_CONTAINER, |
3849 |
IClasspathEntry.CPE_CONTAINER, |
Lines 4026-4031
Link Here
|
4026 |
boolean isExported) { |
4032 |
boolean isExported) { |
4027 |
|
4033 |
|
4028 |
if (path == null) throw new ClasspathEntry.AssertionFailedException("Library path cannot be null"); //$NON-NLS-1$ |
4034 |
if (path == null) throw new ClasspathEntry.AssertionFailedException("Library path cannot be null"); //$NON-NLS-1$ |
|
|
4035 |
if (accessRules == null) { |
4036 |
accessRules = ClasspathEntry.NO_ACCESS_RULES; |
4037 |
} |
4038 |
if (extraAttributes == null) { |
4039 |
extraAttributes = ClasspathEntry.NO_EXTRA_ATTRIBUTES; |
4040 |
} |
4029 |
boolean hasDotDot = ClasspathEntry.hasDotDot(path); |
4041 |
boolean hasDotDot = ClasspathEntry.hasDotDot(path); |
4030 |
if (!hasDotDot && !path.isAbsolute()) throw new ClasspathEntry.AssertionFailedException("Path for IClasspathEntry must be absolute: " + path); //$NON-NLS-1$ |
4042 |
if (!hasDotDot && !path.isAbsolute()) throw new ClasspathEntry.AssertionFailedException("Path for IClasspathEntry must be absolute: " + path); //$NON-NLS-1$ |
4031 |
if (sourceAttachmentPath != null) { |
4043 |
if (sourceAttachmentPath != null) { |
Lines 4147-4153
Link Here
|
4147 |
boolean isExported) { |
4159 |
boolean isExported) { |
4148 |
|
4160 |
|
4149 |
if (!path.isAbsolute()) throw new ClasspathEntry.AssertionFailedException("Path for IClasspathEntry must be absolute"); //$NON-NLS-1$ |
4161 |
if (!path.isAbsolute()) throw new ClasspathEntry.AssertionFailedException("Path for IClasspathEntry must be absolute"); //$NON-NLS-1$ |
4150 |
|
4162 |
if (accessRules == null) { |
|
|
4163 |
accessRules = ClasspathEntry.NO_ACCESS_RULES; |
4164 |
} |
4165 |
if (extraAttributes == null) { |
4166 |
extraAttributes = ClasspathEntry.NO_EXTRA_ATTRIBUTES; |
4167 |
} |
4151 |
return new ClasspathEntry( |
4168 |
return new ClasspathEntry( |
4152 |
IPackageFragmentRoot.K_SOURCE, |
4169 |
IPackageFragmentRoot.K_SOURCE, |
4153 |
IClasspathEntry.CPE_PROJECT, |
4170 |
IClasspathEntry.CPE_PROJECT, |
Lines 4350-4358
Link Here
|
4350 |
|
4367 |
|
4351 |
if (path == null) throw new ClasspathEntry.AssertionFailedException("Source path cannot be null"); //$NON-NLS-1$ |
4368 |
if (path == null) throw new ClasspathEntry.AssertionFailedException("Source path cannot be null"); //$NON-NLS-1$ |
4352 |
if (!path.isAbsolute()) throw new ClasspathEntry.AssertionFailedException("Path for IClasspathEntry must be absolute"); //$NON-NLS-1$ |
4369 |
if (!path.isAbsolute()) throw new ClasspathEntry.AssertionFailedException("Path for IClasspathEntry must be absolute"); //$NON-NLS-1$ |
4353 |
if (exclusionPatterns == null) throw new ClasspathEntry.AssertionFailedException("Exclusion pattern set cannot be null"); //$NON-NLS-1$ |
4370 |
if (exclusionPatterns == null) { |
4354 |
if (inclusionPatterns == null) throw new ClasspathEntry.AssertionFailedException("Inclusion pattern set cannot be null"); //$NON-NLS-1$ |
4371 |
exclusionPatterns = ClasspathEntry.EXCLUDE_NONE; |
4355 |
|
4372 |
} |
|
|
4373 |
if (inclusionPatterns == null) { |
4374 |
inclusionPatterns = ClasspathEntry.INCLUDE_ALL; |
4375 |
} |
4376 |
if (extraAttributes == null) { |
4377 |
extraAttributes = ClasspathEntry.NO_EXTRA_ATTRIBUTES; |
4378 |
} |
4356 |
return new ClasspathEntry( |
4379 |
return new ClasspathEntry( |
4357 |
IPackageFragmentRoot.K_SOURCE, |
4380 |
IPackageFragmentRoot.K_SOURCE, |
4358 |
IClasspathEntry.CPE_SOURCE, |
4381 |
IClasspathEntry.CPE_SOURCE, |
Lines 4496-4501
Link Here
|
4496 |
if (variablePath.segmentCount() < 1) { |
4519 |
if (variablePath.segmentCount() < 1) { |
4497 |
throw new ClasspathEntry.AssertionFailedException("Illegal classpath variable path: \'" + variablePath.makeRelative().toString() + "\', must have at least one segment"); //$NON-NLS-1$//$NON-NLS-2$ |
4520 |
throw new ClasspathEntry.AssertionFailedException("Illegal classpath variable path: \'" + variablePath.makeRelative().toString() + "\', must have at least one segment"); //$NON-NLS-1$//$NON-NLS-2$ |
4498 |
} |
4521 |
} |
|
|
4522 |
if (accessRules == null) { |
4523 |
accessRules = ClasspathEntry.NO_ACCESS_RULES; |
4524 |
} |
4525 |
if (extraAttributes == null) { |
4526 |
extraAttributes = ClasspathEntry.NO_EXTRA_ATTRIBUTES; |
4527 |
} |
4499 |
|
4528 |
|
4500 |
return new ClasspathEntry( |
4529 |
return new ClasspathEntry( |
4501 |
IPackageFragmentRoot.K_SOURCE, |
4530 |
IPackageFragmentRoot.K_SOURCE, |