Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

upgrade to 1.3.7 and change the way properties are handled. This mean…

…s the configuration service is no longer required.
  • Loading branch information...
commit 38a577e326ca802d1f43cf6dd3dfaf14a7b33929 1 parent 8523d28
@noels authored
View
6 application.properties
@@ -1,8 +1,8 @@
#Grails Metadata file
-#Wed Apr 20 15:01:37 BST 2011
-app.grails.version=1.3.5
+#Thu Jun 16 15:49:46 BST 2011
+app.grails.version=1.3.7
app.name=freeagent
-plugins.hibernate=1.3.5
+plugins.hibernate=1.3.7
plugins.rest=0.6.1
plugins.springcache=1.3.1
plugins.tomcat=1.3.7
View
24 grails-app/services/freeagent/ConfigurationService.groovy
@@ -4,35 +4,17 @@ class ConfigurationService {
def config
def grailsApplication
- def ConfigurationService(grailsApplication) {
- this.grailsApplication = grailsApplication;
- config = grailsApplication.config
- }
-
- def ConfigurationService(){
- /*
- def CONFIG_LOCATION_APP_HOME = 'app.home.directory'
- def configPath = ''
- if (System.properties[CONFIG_LOCATION_APP_HOME]) {
- configPath = System.properties[CONFIG_LOCATION_APP_HOME]
- }
-
- def filePath = new File("${configPath}grails-app/conf/Config.groovy").toURL()
- config = new ConfigSlurper(System.properties.get('grails.env')).parse(filePath)
- */
- //config = application.config
- }
def getFreeagentUserId() {
- application.config?.freeagent?.userId
+ grailsApplication.config?.freeagent?.userId
}
def getFreeagentPassword() {
- application.config?.freeagent?.password
+ grailsApplication.config?.freeagent?.password
}
def getFreeagentURI(){
- application.config?.freeagent?.uri
+ grailsApplication.config?.freeagent?.uri
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.