Skip to content

Commit

Permalink
Resolve the data when war deployed via the parent application context.
Browse files Browse the repository at this point in the history
  • Loading branch information
ldaley committed Jun 17, 2009
1 parent e94c797 commit c5aaec6
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -56,7 +56,7 @@ class TransientGrailsLdapServer implements InitializingBean, DisposableBean, Bea

log.info("${beanName} config: " + configOptions.collect { "$it = ${this.properties[it]}" }.join(', '))

def baseConfigDirPath = (ApplicationHolder.application.warDeployed) ? "WEB-INF/grails-app/ldap-servers" : "grails-app/ldap-servers"
def baseConfigDirPath = (ApplicationHolder.application.warDeployed) ? ApplicationHolder.application.parentContext.getResource("WEB-INF/grails-app/ldap-servers").file.path : "grails-app/ldap-servers"
def baseConfigDir = new File(baseConfigDirPath)
configDir = new File(baseConfigDir, beanName - "LdapServer")
dataDir = new File(configDir, "data")
Expand Down

0 comments on commit c5aaec6

Please sign in to comment.