Lines 1257-1272
Link Here
|
1257 |
"template.restrictedAccess.field", //$NON-NLS-1$ |
1257 |
"template.restrictedAccess.field", //$NON-NLS-1$ |
1258 |
new String[] {"{0}", "{1}", currentClasspathName}); //$NON-NLS-1$ //$NON-NLS-2$ |
1258 |
new String[] {"{0}", "{1}", currentClasspathName}); //$NON-NLS-1$ //$NON-NLS-2$ |
1259 |
AccessRuleSet accessRuleSet = new AccessRuleSet(accessRules, templates); |
1259 |
AccessRuleSet accessRuleSet = new AccessRuleSet(accessRules, templates); |
1260 |
FileSystem.Classpath currentClasspath = FileSystem |
1260 |
FileSystem.Classpath currentClasspath = FileSystem.getClasspath( |
1261 |
.getClasspath(currentClasspathName, |
1261 |
currentClasspathName, |
1262 |
customEncoding, 0, accessRuleSet); |
1262 |
customEncoding, |
|
|
1263 |
isSource ? ClasspathLocation.SOURCE : ClasspathLocation.BINARY | ClasspathLocation.SOURCE, |
1264 |
accessRuleSet); |
1263 |
if (currentClasspath != null) { |
1265 |
if (currentClasspath != null) { |
1264 |
paths.add(currentClasspath); |
1266 |
paths.add(currentClasspath); |
1265 |
if (isSource && currentClasspath instanceof ClasspathDirectory) { |
|
|
1266 |
((ClasspathDirectory) currentClasspath).mode = |
1267 |
ClasspathDirectory.SOURCE; |
1268 |
// TODO may consider adding this attribute to other classpath natures |
1269 |
} |
1270 |
} else { |
1267 |
} else { |
1271 |
this.logger.logIncorrectClasspath(currentClasspathName); |
1268 |
this.logger.logIncorrectClasspath(currentClasspathName); |
1272 |
// we go on anyway |
1269 |
// we go on anyway |
Lines 2378-2385
Link Here
|
2378 |
for (int j = 0, max2 = current.length; j < max2; j++) { |
2375 |
for (int j = 0, max2 = current.length; j < max2; j++) { |
2379 |
FileSystem.Classpath classpath = |
2376 |
FileSystem.Classpath classpath = |
2380 |
FileSystem.getClasspath( |
2377 |
FileSystem.getClasspath( |
2381 |
current[j].getAbsolutePath(), |
2378 |
current[j].getAbsolutePath(), |
2382 |
null, 0, null); |
2379 |
null, null); |
2383 |
if (classpath != null) { |
2380 |
if (classpath != null) { |
2384 |
bootclasspaths.add(classpath); |
2381 |
bootclasspaths.add(classpath); |
2385 |
} |
2382 |
} |
Lines 2402-2415
Link Here
|
2402 |
String classProp = System.getProperty("java.class.path"); //$NON-NLS-1$ |
2399 |
String classProp = System.getProperty("java.class.path"); //$NON-NLS-1$ |
2403 |
if ((classProp == null) || (classProp.length() == 0)) { |
2400 |
if ((classProp == null) || (classProp.length() == 0)) { |
2404 |
this.logger.logNoClasspath(); |
2401 |
this.logger.logNoClasspath(); |
2405 |
classpaths.add(FileSystem.getClasspath(System.getProperty("user.dir"), customEncoding, 0, null));//$NON-NLS-1$ |
2402 |
classpaths.add(FileSystem.getClasspath(System.getProperty("user.dir"), customEncoding, null));//$NON-NLS-1$ |
2406 |
} else { |
2403 |
} else { |
2407 |
StringTokenizer tokenizer = new StringTokenizer(classProp, File.pathSeparator); |
2404 |
StringTokenizer tokenizer = new StringTokenizer(classProp, File.pathSeparator); |
2408 |
String token; |
2405 |
String token; |
2409 |
while (tokenizer.hasMoreTokens()) { |
2406 |
while (tokenizer.hasMoreTokens()) { |
2410 |
token = tokenizer.nextToken(); |
2407 |
token = tokenizer.nextToken(); |
2411 |
FileSystem.Classpath currentClasspath = FileSystem |
2408 |
FileSystem.Classpath currentClasspath = FileSystem |
2412 |
.getClasspath(token, customEncoding, 0, null); |
2409 |
.getClasspath(token, customEncoding, null); |
2413 |
if (currentClasspath != null) { |
2410 |
if (currentClasspath != null) { |
2414 |
classpaths.add(currentClasspath); |
2411 |
classpaths.add(currentClasspath); |
2415 |
} else { |
2412 |
} else { |
Lines 2471-2477
Link Here
|
2471 |
FileSystem.Classpath classpath = |
2468 |
FileSystem.Classpath classpath = |
2472 |
FileSystem.getClasspath( |
2469 |
FileSystem.getClasspath( |
2473 |
current[j].getAbsolutePath(), |
2470 |
current[j].getAbsolutePath(), |
2474 |
null, 0, null); |
2471 |
null, null); |
2475 |
if (classpath != null) { |
2472 |
if (classpath != null) { |
2476 |
extdirsClasspaths.add(classpath); |
2473 |
extdirsClasspaths.add(classpath); |
2477 |
} |
2474 |
} |