Changeset 622 for trunk/grails-app/conf/Searchable.groovy
- Timestamp:
- Jul 10, 2010, 10:48:50 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/conf/Searchable.groovy
r598 r622 1 import org.codehaus.groovy.grails.commons.ConfigurationHolder 2 1 3 /** 2 4 * This {@link groovy.util.ConfigObject} script provides Grails Searchable Plugin configuration. … … 26 28 27 29 /** 28 * The location of the Compass index 29 * 30 * Examples: "/home/app/compassindex", "ram://app-index" or null to use the default 31 * 32 * The default is "${user.home}/.grails/projects/${app.name}/searchable-index/${grails.env}" 33 */ 34 // Pickup the Tomcat/Catalina work directory else use the current or temp dir. 35 def catalinaBase = System.properties.getProperty('catalina.base') 36 def fs = File.separator 37 def indexDirectory = catalinaBase ? "${catalinaBase}${fs}work${fs}Lucene${fs}" : "Lucene${fs}" 38 39 compassConnection = new File("${indexDirectory}${appName}").absolutePath 30 * The location of the Compass index 31 * 32 * Examples: "/home/app/compassindex", "ram://app-index" or null to use the default 33 * 34 * The default is "${user.home}/.grails/projects/${app.name}/searchable-index/${grails.env}" 35 */ 36 compassConnection = new File(ConfigurationHolder.config.globalDirs.searchableIndexDirectory).absolutePath 40 37 41 38 /**
Note: See TracChangeset
for help on using the changeset viewer.