private static void initJefHome() { File file = IOUtils.urlToFile(ClassLoaderUtil.getCodeSource(IOUtils.class)); final String s = file.getParent(); IPath path = new Path(s); try { IPath pp = JavaCore.getClasspathVariable("JEF_HOME"); if (pp == null || !pp.equals(path)) { JavaCore.setClasspathVariable("JEF_HOME", path, null); } } catch (CoreException e) { e.printStackTrace(); } }
private static File findOpenEjbFolder() { File file = IOUtils.urlToFile(ClassLoaderUtil.getCodeSource(PluginHelper.class)); File openEjbFolder = new File(file, "apache-openejb"); return openEjbFolder; }