(String path, StringBuffer sb)
| 186 | |
| 187 | // Adds .jar files in plugins folder, and subfolders, to the classpath |
| 188 | void addJars(String path, StringBuffer sb) { |
| 189 | String[] list = null; |
| 190 | File f = new File(path); |
| 191 | if (f.exists() && f.isDirectory()) |
| 192 | list = f.list(); |
| 193 | if (list==null) |
| 194 | return; |
| 195 | boolean isJarsFolder = path.endsWith("jars")|| path.endsWith("lib"); |
| 196 | path = IJ.addSeparator(path); |
| 197 | for (int i=0; i<list.length; i++) { |
| 198 | File f2 = new File(path+list[i]); |
| 199 | if (f2.isDirectory()) |
| 200 | addJars(path+list[i], sb); |
| 201 | else if (list[i].endsWith(".jar")&&(!list[i].contains("_")||isJarsFolder)) { |
| 202 | sb.append(File.pathSeparator+path+list[i]); |
| 203 | //IJ.log("javac classpath: "+path+list[i]); |
| 204 | } |
| 205 | } |
| 206 | } |
| 207 | |
| 208 | void showErrors(String s) { |
| 209 | if (errors==null || !errors.isVisible()) { |
no test coverage detected