Package gql.ratpack

Class PathUtil


  • public final class PathUtil
    extends Object
    Helps to resolve resources location
    Since:
    0.2.0
    • Constructor Detail

      • PathUtil

        public PathUtil()
    • Method Detail

      • toPath

        public static Path toPath​(URL resource)
                           throws URISyntaxException
        Resolves a given resource location whether it's located in the current classpath or in any of the available jars in the application
        Parameters:
        resource - the URL of the resource
        Returns:
        a full Path where the resource can be located
        Throws:
        URISyntaxException
        Since:
        0.2.0