Class JarDuplicateFinder


  • public final class JarDuplicateFinder
    extends Object
    Utility class for finding multiple instances of the same Jar that exists either in different folder or the same, with the same name and version, or same name but different versions. This class will consider Jar as being duplicates based on their base name, not their content or any other indicator.
    Since:
    1.10.0
    Author:
    Pascal Essiembre
    • Method Detail

      • findJarDuplicates

        public static List<JarDuplicates> findJarDuplicates​(String... jarPaths)
        Finds all jar duplicates. This method is null-safe and returns an empty list if no duplicate Jars are found.
        Parameters:
        jarPaths - paths to either jar files or directories containing jars
        Returns:
        list of jar duplicates
      • findJarDuplicates

        public static List<JarDuplicates> findJarDuplicates​(File... jarPaths)
        Finds all jar duplicates. This method is null-safe and returns an empty list if no duplicate Jars are found.
        Parameters:
        jarPaths - paths to either jar files or directories containing jars
        Returns:
        list of jar duplicates
      • main

        public static void main​(String[] args)