Skip to content

Commit 146cc11

Browse files
committed
fix for GRAILS-6471 "Running list-plugins and specifying the repository causes and error"
1 parent c93f920 commit 146cc11

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

scripts/_GrailsPlugins.groovy

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -128,11 +128,14 @@ target(uninstallPlugin:"Uninstalls a plug-in for a given name") {
128128
target(listPlugins: "Implementation target") {
129129
depends(parseArguments,configureProxy)
130130

131-
if (argsMap.repository) {
132-
configureRepositoryForName(argsMap.repository)
133-
updatePluginsList()
134-
printRemotePluginList(argsMap.repository)
135-
printInstalledPlugins()
131+
def repository = argsMap.repository
132+
if (repository) {
133+
eachRepository { name, url ->
134+
if(name == repository) {
135+
printRemotePluginList(repository)
136+
printInstalledPlugins()
137+
}
138+
}
136139
}
137140
else if (argsMap.installed) {
138141
printInstalledPlugins()

0 commit comments

Comments
 (0)