Class JarUtils


  • public class JarUtils
    extends java.lang.Object
    Utility methods for working with Java jar files.
    • Constructor Summary

      Constructors 
      Constructor Description
      JarUtils()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static boolean isJarFile​(org.apache.maven.artifact.Artifact artifact)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • JarUtils

        public JarUtils()
    • Method Detail

      • isJarFile

        public static boolean isJarFile​(org.apache.maven.artifact.Artifact artifact)
        Parameters:
        artifact - the artifact to check (could be a jar file, directory, etc.)
        Returns:
        true if the artifact is a jar file, false if it's something else (like a directory)