Skip to content

Commit

Permalink
fix for GRAILS-6471 "Running list-plugins and specifying the reposito…
Browse files Browse the repository at this point in the history
…ry causes and error"
  • Loading branch information
graemerocher committed Jul 6, 2010
1 parent c93f920 commit 146cc11
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions scripts/_GrailsPlugins.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -128,11 +128,14 @@ target(uninstallPlugin:"Uninstalls a plug-in for a given name") {
target(listPlugins: "Implementation target") {
depends(parseArguments,configureProxy)

if (argsMap.repository) {
configureRepositoryForName(argsMap.repository)
updatePluginsList()
printRemotePluginList(argsMap.repository)
printInstalledPlugins()
def repository = argsMap.repository
if (repository) {
eachRepository { name, url ->
if(name == repository) {
printRemotePluginList(repository)
printInstalledPlugins()
}
}
}
else if (argsMap.installed) {
printInstalledPlugins()
Expand Down

0 comments on commit 146cc11

Please sign in to comment.