Changeset 598 for trunk/grails-app/conf/Searchable.groovy
- Timestamp:
- Jun 17, 2010, 10:52:06 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/conf/Searchable.groovy
r571 r598 32 32 * The default is "${user.home}/.grails/projects/${app.name}/searchable-index/${grails.env}" 33 33 */ 34 // Pickup the Tomcat/Catalina work directory else use the current dir.34 // Pickup the Tomcat/Catalina work directory else use the current or temp dir. 35 35 def catalinaBase = System.properties.getProperty('catalina.base') 36 def indexDirectory = catalinaBase ? "${catalinaBase}/work/lucene/${appName}" : './target/lucene' 36 def fs = File.separator 37 def indexDirectory = catalinaBase ? "${catalinaBase}${fs}work${fs}Lucene${fs}" : "Lucene${fs}" 37 38 38 compassConnection = new File( indexDirectory).absolutePath39 compassConnection = new File("${indexDirectory}${appName}").absolutePath 39 40 40 41 /**
Note: See TracChangeset
for help on using the changeset viewer.