mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-17 14:02:22 +00:00
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@5305 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
1 parent
6a0dfd3804
commit
17151ea2b4
1 file changed
+11
-13
@@ -159,19 +159,17 @@ public class CVSSCM extends SCM implements Serializable {
|
||||
return workspace.child(getAllModulesNormalized()[0]);
|
||||
}
|
||||
|
||||
// until I understand better why this is causing an IOException in MecurialSCM
|
||||
// CVSSCM will use the super method (i.e. only one module root)
|
||||
// public FilePath[] getModuleRoots(FilePath workspace) {
|
||||
// if (!flatten) {
|
||||
// final String[] moduleLocations = getAllModulesNormalized();
|
||||
// FilePath[] moduleRoots = new FilePath[moduleLocations.length];
|
||||
// for (int i = 0; i < moduleLocations.length; i++) {
|
||||
// moduleRoots[i] = workspace.child(moduleLocations[i]);
|
||||
// }
|
||||
// return moduleRoots;
|
||||
// }
|
||||
// return new FilePath[]{getModuleRoot(workspace)};
|
||||
// }
|
||||
public FilePath[] getModuleRoots(FilePath workspace) {
|
||||
if (!flatten) {
|
||||
final String[] moduleLocations = getAllModulesNormalized();
|
||||
FilePath[] moduleRoots = new FilePath[moduleLocations.length];
|
||||
for (int i = 0; i < moduleLocations.length; i++) {
|
||||
moduleRoots[i] = workspace.child(moduleLocations[i]);
|
||||
}
|
||||
return moduleRoots;
|
||||
}
|
||||
return new FilePath[]{getModuleRoot(workspace)};
|
||||
}
|
||||
|
||||
public ChangeLogParser createChangeLogParser() {
|
||||
return new CVSChangeLogParser();
|
||||
|
||||
Reference in new issue
Block a user