From 192aabc63e725ca4d21b1d9570fe2d2cf520d8a0 Mon Sep 17 00:00:00 2001 From: benfry Date: Wed, 10 Mar 2010 17:57:11 +0000 Subject: [PATCH] fix problem with library loading in 0178 (bug #1473) --- app/src/processing/app/Sketch.java | 11 +++++++---- build/build.xml | 19 ++++++------------- todo.txt | 6 ++---- 3 files changed, 15 insertions(+), 21 deletions(-) diff --git a/app/src/processing/app/Sketch.java b/app/src/processing/app/Sketch.java index cc65e12f9..75235d9cd 100644 --- a/app/src/processing/app/Sketch.java +++ b/app/src/processing/app/Sketch.java @@ -3,7 +3,7 @@ /* Part of the Processing project - http://processing.org - Copyright (c) 2004-09 Ben Fry and Casey Reas + Copyright (c) 2004-10 Ben Fry and Casey Reas Copyright (c) 2001-04 Massachusetts Institute of Technology This program is free software; you can redistribute it and/or modify @@ -92,6 +92,9 @@ public class Sketch { * DLLs or JNILIBs. */ private String libraryPath; + /** + * List of library folders. + */ private ArrayList importedLibraries; /** @@ -1403,7 +1406,7 @@ public class Sketch { File libFolder = (File) Base.importToLibraryTable.get(entry); if (libFolder != null) { - getImportedLibraries().add(libFolder); + importedLibraries.add(libFolder); classPath += Compiler.contentsToClassPath(libFolder); libraryPath += File.pathSeparator + libFolder.getAbsolutePath(); } @@ -1784,7 +1787,7 @@ public class Sketch { // if a file called 'export.txt' is in there, it contains // a list of the files that should be exported. // otherwise, all files are exported. - for (File libraryFolder : getImportedLibraries()) { + for (File libraryFolder : importedLibraries) { // in the list is a File object that points the // library sketch's "library" folder File exportSettings = new File(libraryFolder, "export.txt"); @@ -2424,7 +2427,7 @@ public class Sketch { // if a file called 'export.txt' is in there, it contains // a list of the files that should be exported. // otherwise, all files are exported. - for (File libraryFolder : getImportedLibraries()) { + for (File libraryFolder : importedLibraries) { //System.out.println(libraryFolder + " " + libraryFolder.getAbsolutePath()); // in the list is a File object that points the // library sketch's "library" folder diff --git a/build/build.xml b/build/build.xml index 5d76f162f..681087b04 100644 --- a/build/build.xml +++ b/build/build.xml @@ -96,29 +96,22 @@ - - + - - + - - + - - - + - - + - - + diff --git a/todo.txt b/todo.txt index cf2d69e6f..6749eb8e4 100644 --- a/todo.txt +++ b/todo.txt @@ -1,10 +1,11 @@ 0179 pde X another fix for CDATA section in applet.html for exported applets X updated about.jpg +X Cannot find PDF library +X http://dev.processing.org/bugs/show_bug.cgi?id=1473 _ new examples.zip (write build.xml file for it) _ finish build instructions for 1.1 -_ pdf library is broken _ bring back old-style textAscent() _ pdf library - warn about the black boxes _ or figure out how to get alpha text to work @@ -20,9 +21,6 @@ _ make sure that get() and set() (for pixels and subsets) work w/ loaded images _ make sure that get() and set() (for pixels and subsets) work w/ P2D _ make sure that get() and set() (for pixels and subsets) work w/ P3D -_ Cannot find PDF library -_ http://dev.processing.org/bugs/show_bug.cgi?id=1473 - _ change command line to just be part of regular distros _ there's so much platform code in there, it's not worth the extra work _ also include update check for logging