add new repo name info...

Signed-off-by: j502647092 <jtb1@163.com>
This commit is contained in:
j502647092 2015-10-23 22:29:58 +08:00
parent 3968bdb493
commit 1754881b07
2 changed files with 5 additions and 4 deletions

View File

@ -23,6 +23,7 @@ public class Repositories {
public String artifactId;
public String description;
public String groupId;
public String name;
public List<TagInfo> tags;
public String version;
}

View File

@ -102,7 +102,7 @@ public class RepositoryManager {
public List<String> getAllPluginName() {
final List<String> li = new ArrayList<String>();
for (final Entry<String, PluginInfo> plugin : plugins.entrySet()) {
li.add(plugin.getValue().plugin.artifactId);
li.add(plugin.getValue().plugin.name);
}
return li;
}
@ -111,7 +111,7 @@ public class RepositoryManager {
final List<String> li = new ArrayList<String>();
for (final Entry<String, PluginInfo> plugin : plugins.entrySet()) {
final Plugin pl = plugin.getValue().plugin;
li.add(String.format("§d%s §a%s(%s) §6- §e%s", plugin.getValue().repo, pl.artifactId, pl.version, pl.description));
li.add(String.format("§d%s §a%s(%s) §6- §e%s", plugin.getValue().repo, pl.name, pl.version, pl.description));
}
return li;
}
@ -133,7 +133,7 @@ public class RepositoryManager {
public PluginInfo getPlugin(final String name) {
for (final Entry<String, PluginInfo> plugin : plugins.entrySet()) {
if (plugin.getValue().plugin.artifactId.equalsIgnoreCase(name)) {
if (plugin.getValue().plugin.name.equalsIgnoreCase(name)) {
return plugin.getValue();
}
}
@ -143,7 +143,7 @@ public class RepositoryManager {
public List<PluginInfo> getPluginInfo(final String name) {
final List<PluginInfo> li = new ArrayList<PluginInfo>();
for (final Entry<String, PluginInfo> plugin : plugins.entrySet()) {
if (plugin.getValue().plugin.artifactId.equalsIgnoreCase(name)) {
if (plugin.getValue().plugin.name.equalsIgnoreCase(name)) {
li.add(plugin.getValue());
}
}