/** * Resolves a path relative to the base directory. If the path is absolute * it will be returned intact, otherwise it will be appended to the * current base directory. So if your base directory is "/home/joelauer/project" * and you provide a path of "images/my.png" then a path of "/home/joelauer/project/images/my.png" * will be returned * @param path The path to resolve * @return The resolved path * @see #withBaseDir(java.io.File) * @see #withBaseDir(java.lang.String) */ static public Path withBaseDir(File path) { return ContextHolder.get().withBaseDir(path); }
/** * Resolves a path relative to the base directory. If the path is absolute * it will be returned intact, otherwise it will be appended to the * current base directory. So if your base directory is "/home/joelauer/project" * and you provide a path of "images/my.png" then a path of "/home/joelauer/project/images/my.png" * will be returned * @param path The path to resolve * @return The resolved path * @see #withBaseDir(java.io.File) * @see #withBaseDir(java.lang.String) */ static public Path withBaseDir(String path) { return ContextHolder.get().withBaseDir(path); }
/** * Resolves a path relative to the base directory. If the path is absolute * it will be returned intact, otherwise it will be appended to the * current base directory. So if your base directory is "/home/joelauer/project" * and you provide a path of "images/my.png" then a path of "/home/joelauer/project/images/my.png" * will be returned * @param path The path to resolve * @return The resolved path * @see #withBaseDir(java.io.File) * @see #withBaseDir(java.lang.String) */ static public Path withBaseDir(File path) { return ContextHolder.get().withBaseDir(path); }
/** * Resolves a path relative to the base directory. If the path is absolute * it will be returned intact, otherwise it will be appended to the * current base directory. So if your base directory is "/home/joelauer/project" * and you provide a path of "images/my.png" then a path of "/home/joelauer/project/images/my.png" * will be returned * @param path The path to resolve * @return The resolved path * @see #withBaseDir(java.io.File) * @see #withBaseDir(java.lang.String) */ static public Path withBaseDir(Path path) { return ContextHolder.get().withBaseDir(path); }
/** * Resolves a path relative to the base directory. If the path is absolute * it will be returned intact, otherwise it will be appended to the * current base directory. So if your base directory is "/home/joelauer/project" * and you provide a path of "images/my.png" then a path of "/home/joelauer/project/images/my.png" * will be returned * @param path The path to resolve * @return The resolved path * @see #withBaseDir(java.io.File) * @see #withBaseDir(java.lang.String) */ static public Path withBaseDir(Path path) { return ContextHolder.get().withBaseDir(path); }
/** * Resolves a path relative to the base directory. If the path is absolute * it will be returned intact, otherwise it will be appended to the * current base directory. So if your base directory is "/home/joelauer/project" * and you provide a path of "images/my.png" then a path of "/home/joelauer/project/images/my.png" * will be returned * @param path The path to resolve * @return The resolved path * @see #withBaseDir(java.io.File) * @see #withBaseDir(java.lang.String) */ static public Path withBaseDir(String path) { return ContextHolder.get().withBaseDir(path); }