提交 fa0135f9 编写于 作者: J jglick

Export the modules in a maven2 build as part of the web service API.

Everything else is already in place to make them useful.

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@16580 71c3de6d-444a-0410-be80-ed276b4c234a
上级 f65b3a03
......@@ -59,6 +59,7 @@ import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.HashSet;
import org.kohsuke.stapler.export.Exported;
/**
* {@link Job} that builds projects based on Maven2.
......@@ -282,6 +283,7 @@ public final class MavenModule extends AbstractMavenProject<MavenModule,MavenBui
return moduleName.toFileSystemName()+'/';
}
@Exported(visibility=2)
@Override
public String getDisplayName() {
return displayName;
......
......@@ -47,6 +47,7 @@ import java.io.IOException;
import java.util.*;
import net.sf.json.JSONObject;
import org.kohsuke.stapler.export.Exported;
/**
* Group of {@link MavenModule}s.
......@@ -161,6 +162,7 @@ public final class MavenModuleSet extends AbstractMavenProject<MavenModuleSet,Ma
return modules.values();
}
@Exported
public Collection<MavenModule> getModules() {
return getItems();
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册