Class ClasspathChecker


  • public class ClasspathChecker
    extends Object
    • Constructor Detail

      • ClasspathChecker

        public ClasspathChecker()
    • Method Detail

      • validateClasspath

        public boolean validateClasspath​(String classpath)
        Parses a Java classpath string ("path/to/foo:baz.jar:blech.zip:path/to/*") and checks if at least one entry is valid (exists on disk).

        From http://docs.oracle.com/javase/8/docs/technotes/tools/windows/classpath.html :

        Class path entries can contain the basename wildcard character *, which is considered equivalent to specifying a list of all the files in the directory with the extension .jar or .JAR. For example, the class path entry foo/* specifies all JAR files in the directory named foo. A classpath entry consisting simply of * expands to a list of all the jar files in the current directory.