コード例 #1
0
 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();
   }
 }
コード例 #2
0
 private static File findOpenEjbFolder() {
   File file = IOUtils.urlToFile(ClassLoaderUtil.getCodeSource(PluginHelper.class));
   File openEjbFolder = new File(file, "apache-openejb");
   return openEjbFolder;
 }