blob: 6783145deda8259f80014e2a10423f0f9b2de0b7 [file] [log] [blame]
if (job.equals(newJob))
return;
if (job.getScms() != null && job.getScms().eClass().equals(BuildscmPackage.eINSTANCE.getSVN())) {
if (newJob.getScms() == null)
newJob.setScms(BuildscmFactory.eINSTANCE.createSVN());
SVN newScm = (SVN) newJob.getScms();
SVN scm = (SVN) job.getScms();
for (SVNLocation svnLocation : scm.getLocations()) {
svnLocation.setLocalPath(job.getName() + "_" + svnLocation.getLocalPath());
}
newScm.getLocations().addAll(scm.getLocations());
}