Skip to content

Commit

Permalink
griffon-gsql: fixed typos and ddl execution. Fixed injecInto on sever…
Browse files Browse the repository at this point in the history
…al plugins
  • Loading branch information
aalmiray committed Jan 6, 2010
1 parent 8d983a7 commit f8a5d87
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions scripts/_Install.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,8 @@ root.'XmlrpcGriffonAddon'.addon=true
''')
}

def checkConfigOptionIsSet = { where, option ->
boolean optionIsSet = false
where.each { key, value ->
optionIsSet = optionIsSet || option == key
}
optionIsSet
}

if(!checkConfigOptionIsSet(appConfig, "griffon.xmlrpc.injectInto")) {
appConfig = configSlurper1.parse(new File("$basedir/griffon-app/conf/Application.groovy").toURL())
if(!(appConfig.flatten().'griffon.xmlrpc.injectInto')) {
new File("${basedir}/griffon-app/conf/Application.groovy").append("""
griffon.xmlrpc.injectInto = ["controller"]
""")
Expand Down

0 comments on commit f8a5d87

Please sign in to comment.