提交 6a0dfd38 编写于 作者: S stephenconnolly

Quoting Jesse Glick <Jesse.Glick@Sun.COM>:

> "Getting IOException while running build." from MercurialSCM.clone?

Not sure how CVSSCM is causing problems for MercurialSCM, but commenting out until I get an understanding


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@5304 71c3de6d-444a-0410-be80-ed276b4c234a
上级 0ff8353b
......@@ -159,17 +159,19 @@ public class CVSSCM extends SCM implements Serializable {
return workspace.child(getAllModulesNormalized()[0]);
}
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)};
}
// 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 ChangeLogParser createChangeLogParser() {
return new CVSChangeLogParser();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册