提交 c8e932f2 编写于 作者: A abayer

[FIXED HUDSON-7611] Make sure the changelog paths we're comparing against are...

[FIXED HUDSON-7611] Make sure the changelog paths we're comparing against are using Unix slashes, same as the module paths

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@35382 71c3de6d-444a-0410-be80-ed276b4c234a
上级 a163996a
......@@ -165,7 +165,7 @@ public class MavenModuleSetBuild extends AbstractMavenBuild<MavenModuleSet,Maven
private boolean belongsToSubsidiary(List<MavenModule> subsidiaries, String path) {
for (MavenModule sub : subsidiaries)
if(path.startsWith(FilenameUtils.normalize(sub.getRelativePath())))
if (FilenameUtils.separatorsToUnix(path).startsWith(FilenameUtils.normalize(sub.getRelativePath())))
return true;
return false;
}
......@@ -175,7 +175,7 @@ public class MavenModuleSetBuild extends AbstractMavenBuild<MavenModuleSet,Maven
*/
private boolean isDescendantOf(ChangeLogSet.Entry e, MavenModule mod) {
for (String path : e.getAffectedPaths()) {
if(path.startsWith(FilenameUtils.normalize(mod.getRelativePath())))
if (FilenameUtils.separatorsToUnix(path).startsWith(FilenameUtils.normalize(mod.getRelativePath())))
return true;
}
return false;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册