Class FileSignature

    • Method Detail

      • files

        public Collection<File> files()
        Returns all of the files in this signature, throwing an exception if there are more or less than 1 file.
      • getOnlyFile

        public File getOnlyFile()
        Returns the only file in this signature, throwing an exception if there are more or less than 1 file.
      • machineIsWin

        public static boolean machineIsWin()
        Returns true if this JVM is running on a windows machine.
      • pathNativeToUnix

        public static String pathNativeToUnix​(String pathNative)
        Transforms a native path to a unix one.
      • pathUnixToNative

        public static String pathUnixToNative​(String pathUnix)
        Transforms a unix path to a native one.
      • subpath

        public static String subpath​(String root,
                                     String child)
        Asserts that child is a subpath of root. and returns the subpath.