/** * * @return - a list of jar pairs that have overlapping class files - scans the whole classpath * */ public List<JarPair> findOverlappingJars(boolean excludeSameSizeDups) { return findOverlappingJars(findAllClasspathResources(), excludeSameSizeDups); }
/** * * @return - a list of jar pairs that have overlapping class files - scans the whole classpath * * By default all duplicates are shown * */ public List<JarPair> findOverlappingJars() { return findOverlappingJars(findAllClasspathResources(), false); }
/** * * @return - a list of jar pairs that have overlapping class files - scans the whole classpath * */ public List<JarPair> findOverlappingJars(boolean excludeSameSizeDups) { return findOverlappingJars(findAllClasspathResources(), excludeSameSizeDups); }
/** * * @return - a list of jar pairs that have overlapping class files - scans the whole classpath * * By default all duplicates are shown * */ public List<JarPair> findOverlappingJars() { return findOverlappingJars(findAllClasspathResources(), false); }
boolean isExcludeSameSizeDups = "true".equals(System.getProperty("exclude.same.size.dups")); List<JarPair> overlapReportLines = scanner.findOverlappingJars(classpathResources, isExcludeSameSizeDups);
public JHades overlappingJarsReport() { System.out.println("\n>> jHades - scanning classpath for overlapping jars: \n"); List<JarPair> jarOverlapReportLines = scanner.findOverlappingJars(); for (JarPair jarOverlapReportLine : jarOverlapReportLines) { String reportLine = jarOverlapReportLine.getJar1().getUrl() + " overlaps with \n" + jarOverlapReportLine.getJar2().getUrl() + " - total overlapping classes: " + jarOverlapReportLine.getDupClassesTotal() + " - "; if (jarOverlapReportLine.getJar1().getClassLoader().equals(jarOverlapReportLine.getJar2().getClassLoader())) { reportLine += "same classloader ! This is an ERROR!\n"; } else { reportLine += "different classloaders.\n"; } System.out.println(reportLine); } endCommand(jarOverlapReportLines.size() > 0); return this; }
public JHades overlappingJarsReport() { System.out.println("\n>> jHades - scanning classpath for overlapping jars: \n"); List<JarPair> jarOverlapReportLines = scanner.findOverlappingJars(); for (JarPair jarOverlapReportLine : jarOverlapReportLines) { String reportLine = jarOverlapReportLine.getJar1().getUrl() + " overlaps with \n" + jarOverlapReportLine.getJar2().getUrl() + " - total overlapping classes: " + jarOverlapReportLine.getDupClassesTotal() + " - "; if (jarOverlapReportLine.getJar1().getClassLoader().equals(jarOverlapReportLine.getJar2().getClassLoader())) { reportLine += "same classloader ! This is an ERROR!\n"; } else { reportLine += "different classloaders.\n"; } System.out.println(reportLine); } endCommand(jarOverlapReportLines.size() > 0); return this; }