Package gql.ratpack
Class PathUtil
- java.lang.Object
-
- gql.ratpack.PathUtil
-
public final class PathUtil extends Object
Helps to resolve resources location- Since:
- 0.2.0
-
-
Constructor Summary
Constructors Constructor Description PathUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Path
toPath(URL resource)
Resolves a given resource location whether it's located in the current classpath or in any of the available jars in the application
-
-
-
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
- theURL
of the resource- Returns:
- a full
Path
where the resource can be located - Throws:
URISyntaxException
- Since:
- 0.2.0
-
-