mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-16 05:22:22 +00:00
This is more modern and amenable to CLI/tests
This commit is contained in:
1 parent
2ef840a876
commit
df5862c97c
1 file changed
+4
-2
@@ -86,6 +86,8 @@ import net.sf.json.JSONObject;
|
||||
|
||||
import org.apache.commons.lang.math.NumberUtils;
|
||||
import org.apache.maven.model.building.ModelBuildingRequest;
|
||||
import org.kohsuke.stapler.HttpResponse;
|
||||
import org.kohsuke.stapler.HttpResponses;
|
||||
import org.kohsuke.stapler.QueryParameter;
|
||||
import org.kohsuke.stapler.StaplerRequest;
|
||||
import org.kohsuke.stapler.StaplerResponse;
|
||||
@@ -839,11 +841,11 @@ public final class MavenModuleSet extends AbstractMavenProject<MavenModuleSet,Ma
|
||||
/**
|
||||
* Delete all disabled modules.
|
||||
*/
|
||||
public void doDoDeleteAllDisabledModules(StaplerResponse rsp) throws IOException, InterruptedException {
|
||||
public HttpResponse doDoDeleteAllDisabledModules() throws IOException, InterruptedException {
|
||||
checkPermission(DELETE);
|
||||
for( MavenModule m : getDisabledModules(true))
|
||||
m.delete();
|
||||
rsp.sendRedirect2(".");
|
||||
return HttpResponses.redirectToDot();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user