Skip to content

Commit

Permalink
add diagram-api to IDEA SDK
Browse files Browse the repository at this point in the history
  • Loading branch information
gregsh committed Jul 6, 2012
1 parent 431ee59 commit 0ea5de7
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions plugins/devkit/src/projectRoots/IdeaJdk.java
Original file line number Diff line number Diff line change
Expand Up @@ -183,19 +183,22 @@ public static String getBuildNumber(String ideaHome) {
}

private static VirtualFile[] getIdeaLibrary(String home) {
String plugins = home + File.separator + PLUGINS_DIR + File.separator;
ArrayList<VirtualFile> result = new ArrayList<VirtualFile>();
appendIdeaLibrary(home + File.separator + LIB_DIR_NAME, result, "junit.jar");
appendIdeaLibrary(home + File.separator + PLUGINS_DIR + File.separator + JAVAEE_DIR + File.separator + LIB_DIR_NAME, result, "javaee-impl.jar");
appendIdeaLibrary(home + File.separator + PLUGINS_DIR + File.separator + JSF_DIR + File.separator + LIB_DIR_NAME, result, "jsf-impl.jar");
appendIdeaLibrary(home + File.separator + PLUGINS_DIR + File.separator + PERSISTENCE_SUPPORT + File.separator + LIB_DIR_NAME, result, "persistence-impl.jar");
appendIdeaLibrary(home + File.separator + PLUGINS_DIR + File.separator + DATABASE_DIR + File.separator + LIB_DIR_NAME, result, "database-impl.jar");
appendIdeaLibrary(home + File.separator + PLUGINS_DIR + File.separator + CSS_DIR + File.separator + LIB_DIR_NAME, result, "css.jar");
appendIdeaLibrary(home, result, "junit.jar");
appendIdeaLibrary(plugins + "JavaEE", result, "javaee-impl.jar", "jpa-console.jar");
appendIdeaLibrary(plugins + "JSF", result, "jsf-impl.jar");
appendIdeaLibrary(plugins + "PersistenceSupport", result, "persistence-impl.jar");
appendIdeaLibrary(plugins + "DatabaseSupport", result, "database-impl.jar", "jdbc-console.jar");
appendIdeaLibrary(plugins + "css", result, "css.jar");
appendIdeaLibrary(plugins + "uml", result, "uml-support.jar");
return VfsUtil.toVirtualFileArray(result);
}

private static void appendIdeaLibrary(final String path,
private static void appendIdeaLibrary(final String libDirPath,
final ArrayList<VirtualFile> result,
@NonNls final String... forbidden) {
final String path = libDirPath + File.separator + LIB_DIR_NAME;
final JarFileSystem jfs = JarFileSystem.getInstance();
final File lib = new File(path);
if (lib.isDirectory()) {
Expand Down

0 comments on commit 0ea5de7

Please sign in to comment.