mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-22 00:05:31 +00:00
rolling back 16742 and 16743. we don't allow publisher configuration at MavenModule anyway
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@16744 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
1 parent
143bdbdaab
commit
7e93f894e8
10 files changed
+32
-74
No files matched your search
@@ -42,8 +42,6 @@ import hudson.model.Label;
|
||||
import hudson.model.Node;
|
||||
import hudson.model.Resource;
|
||||
import hudson.model.Saveable;
|
||||
import hudson.model.ItemDescriptor;
|
||||
import hudson.model.Describable;
|
||||
import hudson.tasks.LogRotator;
|
||||
import hudson.tasks.Publisher;
|
||||
import hudson.tasks.Maven.MavenInstallation;
|
||||
@@ -68,7 +66,7 @@ import org.kohsuke.stapler.export.Exported;
|
||||
*
|
||||
* @author Kohsuke Kawaguchi
|
||||
*/
|
||||
public final class MavenModule extends AbstractMavenProject<MavenModule,MavenBuild> implements Saveable, Describable<MavenModule> {
|
||||
public final class MavenModule extends AbstractMavenProject<MavenModule,MavenBuild> implements Saveable {
|
||||
private DescribableList<MavenReporter,Descriptor<MavenReporter>> reporters =
|
||||
new DescribableList<MavenReporter,Descriptor<MavenReporter>>(this);
|
||||
|
||||
@@ -449,22 +447,4 @@ public final class MavenModule extends AbstractMavenProject<MavenModule,MavenBui
|
||||
|
||||
return reporters;
|
||||
}
|
||||
|
||||
public DescriptorImpl getDescriptor() {
|
||||
return (DescriptorImpl)Hudson.getInstance().getDescriptor(getClass());
|
||||
}
|
||||
|
||||
public static class DescriptorImpl extends ItemDescriptor<MavenModule> {
|
||||
public String getDisplayName() {
|
||||
return null; // never used
|
||||
}
|
||||
|
||||
/**
|
||||
* Do the same exclusion as {@link MavenModuleSet} does.
|
||||
*/
|
||||
@Override
|
||||
public boolean isApplicable(Descriptor descriptor) {
|
||||
return Hudson.getInstance().getDescriptorByType(MavenModuleSet.DescriptorImpl.class).isApplicable(descriptor);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user