Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion application.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#Grails Metadata file
#Tue Apr 03 12:40:26 BST 2012
app.grails.version=2.0.4
app.grails.version=2.5.0
app.name=ldap-server
7 changes: 4 additions & 3 deletions grails-app/conf/BuildConfig.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,11 @@ grails.project.dependency.resolution = {
}

plugins {
build (":release:1.0.1", ":svn:1.0.2") {
export = false
test(":tomcat:7.0.55.2") {
export = false
}
test (":hibernate:$grailsVersion", ":tomcat:$grailsVersion") {

build(":release:3.1.1") {
export = false
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ import org.springframework.web.context.ServletContextAware

import grails.util.BuildSettingsHolder

import org.codehaus.groovy.grails.commons.ApplicationHolder
import grails.util.Holders



import groovy.text.SimpleTemplateEngine

Expand Down Expand Up @@ -61,7 +63,7 @@ class TransientGrailsLdapServer implements InitializingBean, DisposableBean, Bea

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

def baseConfigDirPath = (ApplicationHolder.application.warDeployed) ? ApplicationHolder.application.parentContext.getResource("WEB-INF/grails-app/ldap-servers").file.path : "grails-app/ldap-servers"
def baseConfigDirPath = (Holders.grailsApplication.warDeployed) ? Holders.grailsApplication.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