提交 86b2bcb0 编写于 作者: A abayer

[FIXED HUDSON-4693] Fixed handling of relative paths in alternate settings.xml in Maven 2 projects

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@28278 71c3de6d-444a-0410-be80-ed276b4c234a
上级 6bd56e9a
......@@ -736,7 +736,7 @@ public final class MavenModuleSet extends AbstractMavenProject<MavenModuleSet,Ma
public FormValidation doCheckFileInWorkspace(@QueryParameter String value) throws IOException, ServletException {
MavenModuleSetBuild lb = getLastBuild();
if (lb!=null) {
FilePath ws = lb.getModuleRoot();
FilePath ws = lb.getWorkspace();
if(ws!=null)
return ws.validateRelativePath(value,true,true);
}
......@@ -758,7 +758,7 @@ public final class MavenModuleSet extends AbstractMavenProject<MavenModuleSet,Ma
MavenModuleSetBuild lb = getLastBuild();
if (lb!=null) {
FilePath ws = lb.getModuleRoot();
FilePath ws = lb.getWorkspace();
if(ws!=null)
return ws.validateRelativePath(value,true,true);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册