Changeset 327 for trunk/grails-app/conf/Searchable.groovy
- Timestamp:
- Apr 6, 2010, 12:37:22 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/conf/Searchable.groovy
r323 r327 31 31 * 32 32 * The default is "${user.home}/.grails/projects/${app.name}/searchable-index/${grails.env}" 33 *34 * Checks if user.home points to /dev/null (which happens when deploying on tomcat) and set35 * it to /home/tomcat if it is the case. Otherwise just use the user.home36 33 */ 37 34 compassConnection = new File( 38 sprintf("%s/.grails/projects/%s/searchable-index/%s", 39 ((user.home == "/dev/null") ? "/home/tomcat" : user.home), 40 appName, 41 grailsEnv 42 ) 35 ((new File("/home/tomcat").exists()) ? "/home/tomcat/gscf/compassindex" : "/tmp/gscf/compassindex") 43 36 ).absolutePath 44 37
Note: See TracChangeset
for help on using the changeset viewer.