public class ResourceUtils extends Object
| Constructor and Description |
|---|
ResourceUtils() |
| Modifier and Type | Method and Description |
|---|---|
static String |
getRelativePath(String targetPath,
String basePath,
String pathSeparator)
Get the relative path from one file to another, specifying the directory separator.
|
public static String getRelativePath(String targetPath, String basePath, String pathSeparator)
targetPath - targetPath is calculated to this filebasePath - basePath is calculated from this filepathSeparator - directory separator. The platform default is not assumed so that we can test Unix behaviour when running on Windows (for example)Copyright © 2015. All rights reserved.