@Test public void test() { ClassPathAnalyzer cpa = new ClassPathAnalyzer("seage.problem"); List<String> list = cpa.analyzeClassPath(); assertNotNull(list); assertTrue(list.size() > 0); }
public List<String> analyzeClassPath() { String cp = System.getProperty("java.class.path"); String delim = System.getProperty("path.separator"); String[] paths = cp.split(delim); for (String s : paths) { try { File f = new File(s); if (f.isDirectory()) analyzeDir(f); if (f.isFile() && f.getName().endsWith(".jar")) analyzeJar(f); } catch (Exception ex) { _logger.debug(ex.getMessage(), ex); } } return _classNames; }
ClassPathAnalyzer { public List<String> analyzeClassPath() { String cp = System.getProperty("java.class.path"); String delim = System.getProperty("path.separator"); String[] paths = cp.split(delim); for (String s : paths) { try { File f = new File(s); if (f.isDirectory()) analyzeDir(f); if (f.isFile() && f.getName().endsWith(".jar")) analyzeJar(f); } catch (Exception ex) { _logger.debug(ex.getMessage(), ex); } } return _classNames; } }
ClassPathAnalyzer { public List<String> analyzeClassPath() { String cp = System.getProperty("java.class.path"); String delim = System.getProperty("path.separator"); String[] paths = cp.split(delim); for (String s : paths) { try { File f = new File(s); if (f.isDirectory()) analyzeDir(f); if (f.isFile() && f.getName().endsWith(".jar")) analyzeJar(f); } catch (Exception ex) { _logger.debug(ex.getMessage(), ex); } } return _classNames; } ClassPathAnalyzer();  ClassPathAnalyzer(String filter); }
ClassPathAnalyzer { public List<String> analyzeClassPath() { String cp = System.getProperty("java.class.path"); String delim = System.getProperty("path.separator"); String[] paths = cp.split(delim); for (String s : paths) { try { File f = new File(s); if (f.isDirectory()) analyzeDir(f); if (f.isFile() && f.getName().endsWith(".jar")) analyzeJar(f); } catch (Exception ex) { _logger.debug(ex.getMessage(), ex); } } return _classNames; } ClassPathAnalyzer();  ClassPathAnalyzer(String filter); List<String> analyzeClassPath(); }
ClassPathAnalyzer { public List<String> analyzeClassPath() { String cp = System.getProperty("java.class.path"); String delim = System.getProperty("path.separator"); String[] paths = cp.split(delim); for (String s : paths) { try { File f = new File(s); if (f.isDirectory()) analyzeDir(f); if (f.isFile() && f.getName().endsWith(".jar")) analyzeJar(f); } catch (Exception ex) { _logger.debug(ex.getMessage(), ex); } } return _classNames; } ClassPathAnalyzer();  ClassPathAnalyzer(String filter); List<String> analyzeClassPath();  }