working on library issues

This commit is contained in:
benfry
2010-10-02 20:14:17 +00:00
parent 1497c8a846
commit 9eb52fba95
4 changed files with 53 additions and 25 deletions
+22 -1
View File
@@ -1131,12 +1131,20 @@ public class Base {
}
PrintWriter pw;
public void rebuildImportMenu() { //JMenu importMenu) {
//System.out.println("rebuilding import menu");
importMenu.removeAll();
// reset the table mapping imports to libraries
importToLibraryTable = new HashMap<String, File>();
try {
pw = new PrintWriter(new FileWriter(System.getProperty("user.home") + "/Desktop/libs.csv"));
} catch (IOException e1) {
e1.printStackTrace();
}
// Add from the "libraries" subfolder in the Processing directory
try {
@@ -1158,6 +1166,9 @@ public class Base {
} catch (IOException e) {
e.printStackTrace();
}
pw.flush();
pw.close();
}
@@ -1334,7 +1345,17 @@ public class Base {
String packages[] =
Compiler.packageListFromClassPath(libraryClassPath);
for (String pkg : packages) {
importToLibraryTable.put(pkg, libraryFolder);
pw.println(pkg + "\t" + libraryFolder.getAbsolutePath());
File already = importToLibraryTable.get(pkg);
if (already != null) {
Base.showWarning("Library Calling", "The library found in\n" +
libraryFolder.getAbsolutePath() + "\n" +
"conflicts with the library found in\n" +
already.getAbsolutePath() + "\n" +
"which already defines the package " + pkg, null);
} else {
importToLibraryTable.put(pkg, libraryFolder);
}
}
JMenuItem item = new JMenuItem(libraryName);
+1 -1
View File
@@ -1433,7 +1433,7 @@ public class Sketch {
int dot = item.lastIndexOf('.');
// http://dev.processing.org/bugs/show_bug.cgi?id=1145
String entry = (dot == -1) ? item : item.substring(0, dot);
File libFolder = (File) Base.importToLibraryTable.get(entry);
File libFolder = Base.importToLibraryTable.get(entry);
if (libFolder != null) {
if (!importedLibraries.contains(libFolder)) {
+5
View File
@@ -1,3 +1,8 @@
PROCESSING REV 0192 - XX October 2010
Mmmmm.. bug fixes!
PROCESSING REV 0191 - 30 September 2010
Bug fix release. Contains major fixes to 3D for Android.
+25 -23
View File
@@ -1,5 +1,30 @@
0192
_ need to deal with classpath conflicts
_ avoid garbage that people have installed on their machines
_ antlr.jar in the classpath will cause trouble..
_ http://processing.org/discourse/yabb_beta/YaBB.cgi?board=SoftwareBugs;action=display;num=1138652326
_ jogl jar files, or jogl install will cause trouble
_ /System/Library/Java/Extensions or /Library/Java/Extensions
_ the /System one contains qtjava
_ the /Library one is empty (by default), maybe skip it?
_ http://dev.processing.org/bugs/show_bug.cgi?id=1259
_ another problem with opengl libraries
_ http://dev.processing.org/bugs/show_bug.cgi?id=1570
_ when a conflicting library is found, need to report it
_ altho prolly only when it's actually different (md5hash it?)
_ this seems to be causing a lot of trouble with recent releases
_ (opengl changes and whatnot)
_ jar files like the bad aiexport plugin will cause serious problems
_ need to ignore processing.core classes showing up in other jar files
_ tougher than it looks, because it all depends on what java wants to use
_ i.e. even if not specified, the stuff will be in the classpath
_ need to make classpath code be less promiscuous
_ the order of adding libraries to classpath should be opposite
_ the important local libraries should be first in cp, user contrib later
_ http://dev.processing.org/bugs/show_bug.cgi?id=321
_ http://code.google.com/p/processing/issues/detail?id=56
_ remove version number from splash image
_ http://code.google.com/p/processing/issues/detail?id=324
@@ -348,29 +373,6 @@ _ move export.txt to xml? (nah, it's only flat information)
_ need better platform designation setup for libs
_ library installation should use the sketchbook folder, not the p5 folder
_ actually enforce this, give users a warning about other libs
_ need to deal with classpath conflicts
_ avoid garbage that people have installed on their machines
_ antlr.jar in the classpath will cause trouble..
_ http://processing.org/discourse/yabb_beta/YaBB.cgi?board=SoftwareBugs;action=display;num=1138652326
_ jogl jar files, or jogl install will cause trouble
_ /System/Library/Java/Extensions or /Library/Java/Extensions
_ the /System one contains qtjava
_ the /Library one is empty (by default), maybe skip it?
_ http://dev.processing.org/bugs/show_bug.cgi?id=1259
_ another problem with opengl libraries
_ http://dev.processing.org/bugs/show_bug.cgi?id=1570
_ when a conflicting library is found, need to report it
_ altho prolly only when it's actually different (md5hash it?)
_ this seems to be causing a lot of trouble with recent releases
_ (opengl changes and whatnot)
_ jar files like the bad aiexport plugin will cause serious problems
_ need to ignore processing.core classes showing up in other jar files
_ tougher than it looks, because it all depends on what java wants to use
_ i.e. even if not specified, the stuff will be in the classpath
_ need to make classpath code be less promiscuous
_ the order of adding libraries to classpath should be opposite
_ the important local libraries should be first in cp, user contrib later
_ http://dev.processing.org/bugs/show_bug.cgi?id=321
_ java.extension.dirs has the library/extn stuff
_ can probably set this blank
_ the jar from which a class file has been loaded