()
| 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() { |
no test coverage detected