private String preparePath(String path) { SCM scm = getParent().build.getProject().getScm(); if (!(scm instanceof SubversionSCM)) { return path; } ModuleLocation[] locations = ((SubversionSCM) scm).getLocations(); for (int i = 0; i < locations.length; i++) { String commonPart = findCommonPart(locations[i].remote, path); if (commonPart != null) { if (path.startsWith("/")) { path = path.substring(1); } String newPath = path.substring(commonPart.length()); if (newPath.startsWith("/")) { newPath = newPath.substring(1); } return newPath; } } return path; }
private String preparePath(String path) { SCM scm = getParent().build.getProject().getScm(); if (!(scm instanceof SubversionSCM)) { return path; } ModuleLocation[] locations = ((SubversionSCM) scm).getLocations(); for (int i = 0; i < locations.length; i++) { String commonPart = findCommonPart(locations[i].remote, path); if (commonPart != null) { if (path.startsWith("/")) { path = path.substring(1); } String newPath = path.substring(commonPart.length()); if (newPath.startsWith("/")) { newPath = newPath.substring(1); } return newPath; } } return path; }
private String preparePath(String path) { Job job = getParent().getRun().getParent(); SCMTriggerItem s = SCMTriggerItem.SCMTriggerItems.asSCMTriggerItem(job); if (s == null) {