org.tap4j.plugin.util
Class Util
java.lang.Object
org.tap4j.plugin.util.Util
public final class Util
- extends Object
Utility methods used by tap-plugin.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
normalizeFolders
public static String normalizeFolders(String workspace,
String relative)
- Normalizes a folder path in relation to the workspace path.
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.
- Parameters:
workspace - workspace pathrelative - relative path
- Returns:
- normalized path
Copyright © 2011-2013 Jenkins. All Rights Reserved.