Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Examples working; font-loading test still failing.

  • Loading branch information...
commit fb2277b402c0adc9030a1ca0352bd5e36646926e 1 parent 7d1ce74
Jonathan Feinberg authored
Showing with 6 additions and 7 deletions.
  1. +6 −7 runtime/src/jycessing/Runner.java
13 runtime/src/jycessing/Runner.java
View
@@ -130,12 +130,6 @@ private static void addJar(final URL url) throws Exception {
* thread</a>.
*/
private static void addLibraryPath(final String newPath) throws Exception {
- final File d = new File(newPath);
- final String dirName = d.getName();
- if (!dirName.equals(ARCH) && dirName.matches("^(macosx|windows|linux)(32|64)$")) {
- log("Ignoring wrong architecture " + newPath);
- return;
- }
final Field field = ClassLoader.class.getDeclaredField("usr_paths");
field.setAccessible(true);
final String[] paths = (String[])field.get(null);
@@ -161,6 +155,12 @@ private static void searchForExtraStuff(final File dir) throws Exception {
throw new IllegalArgumentException("null dir");
}
+ final String dirName = dir.getName();
+ if (!dirName.equals(ARCH) && dirName.matches("^(macosx|windows|linux)(32|64)$")) {
+ log("Ignoring wrong architecture " + dir);
+ return;
+ }
+
log("Searching: ", dir);
final File[] dlls = dir.listFiles(new FilenameFilter() {
@@ -189,7 +189,6 @@ public boolean accept(final File dir, final String name) {
final File[] dirs = dir.listFiles(new FileFilter() {
public boolean accept(final File f) {
- log("Looking at ", f);
return f.isDirectory() && f.getName().charAt(0) != '.';
}
});
Please sign in to comment.
Something went wrong with that request. Please try again.