public final class Util extends Object
| Modifier and Type | Method and Description |
|---|---|
static String |
normalizeFolders(String workspace,
String relative)
Normalizes a folder path in relation to the workspace path.
|
public static String normalizeFolders(String workspace, String relative)
A folder that is subdirectory of workspace will return only the difference. It means that if the workspace is /home/workspace and the folder we want to normalize is /home/workspace/job-1/test.txt, then the return will be job-1/test.txt.
workspace - workspace pathrelative - relative pathCopyright © 2011-2014 Jenkins. All Rights Reserved.