提交 b52c6cd5 编写于 作者: K kohsuke

this is probably as good a moment as it gets to re-parse POMs.


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@1966 71c3de6d-444a-0410-be80-ed276b4c234a
上级 c8b483a0
......@@ -212,7 +212,7 @@ public class MavenModuleSet extends AbstractItem implements TopLevelItem, ItemGr
// TODO: shall checkout do updates as well?
Launcher launcher = getAssignedNode().createLauncher(listener);
if(!checkout(launcher,listener))
return;
return;
// TODO: this needs to be moved to its own class since MavenModuleSet is not serializable
List<PomInfo> poms = getWorkspace().act(new FileCallable<List<PomInfo>>() {
......@@ -273,6 +273,10 @@ public class MavenModuleSet extends AbstractItem implements TopLevelItem, ItemGr
//
//
/**
* Triggers the POM parsing and eventually updates the list of {@link MavenModule}s under
* this project.
*/
public void doStartParsePOM(StaplerRequest req, StaplerResponse rsp) throws IOException, ServletException {
new Thread(new Runnable() {
public void run() {
......@@ -316,7 +320,8 @@ public class MavenModuleSet extends AbstractItem implements TopLevelItem, ItemGr
}
save();
rsp.sendRedirect(".");
// SCM setting might have changed. Reparse POMs.
rsp.sendRedirect("./startParsePOM");
}
/**
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册