MCPcopy Index your code
hub / github.com/processing/processing / getClassPath

Method getClassPath

app/src/processing/app/Library.java:355–375  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

353
354 // this prepends a colon so that it can be appended to other paths safely
355 public String getClassPath() {
356 StringBuilder cp = new StringBuilder();
357
358// PApplet.println(libraryFolder.getAbsolutePath());
359// PApplet.println(libraryFolder.list());
360 String[] jarHeads = libraryFolder.list(jarFilter);
361 for (String jar : jarHeads) {
362 cp.append(File.pathSeparatorChar);
363 cp.append(new File(libraryFolder, jar).getAbsolutePath());
364 }
365 File nativeLibraryFolder = new File(nativeLibraryPath);
366 if (!libraryFolder.equals(nativeLibraryFolder)) {
367 jarHeads = new File(nativeLibraryPath).list(jarFilter);
368 for (String jar : jarHeads) {
369 cp.append(File.pathSeparatorChar);
370 cp.append(new File(nativeLibraryPath, jar).getAbsolutePath());
371 }
372 }
373 //cp.setLength(cp.length() - 1); // remove the last separator
374 return cp.toString();
375 }
376
377
378 public String getNativePath() {

Callers 3

handleMethod · 0.95
preprocessMethod · 0.95
buildModeClassPathMethod · 0.95

Calls 4

listMethod · 0.45
appendMethod · 0.45
equalsMethod · 0.45
toStringMethod · 0.45

Tested by

no test coverage detected