Class RelativizePath


  • public final class RelativizePath
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private RelativizePath()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) static java.lang.String convertToRelativePath​(java.io.File thing, java.io.File relativeTo)
      relativize a pathname.
      (package private) static java.util.List<java.lang.String> parentDirs​(java.io.File of)  
      • Methods inherited from class java.lang.Object

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

      • RelativizePath

        private RelativizePath()
    • Method Detail

      • convertToRelativePath

        static java.lang.String convertToRelativePath​(java.io.File thing,
                                                      java.io.File relativeTo)
        relativize a pathname.
        Parameters:
        thing - Absolute File of something. (e.g., a parent pom)
        relativeTo - base to relativize it do. (e.g., a pom into which a relative pathname to the 'thing' is to be installed).
        Returns:
      • parentDirs

        static java.util.List<java.lang.String> parentDirs​(java.io.File of)