Changeset 622 for trunk/grails-app/conf
- Timestamp:
- Jul 10, 2010, 10:48:50 PM (14 years ago)
- Location:
- trunk/grails-app/conf
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/conf/BootStrap.groovy
r571 r622 16 16 createDataService.createBaseData() 17 17 createDataService.createDemoData() 18 createDataService.start Lucene()18 createDataService.startSearchableIndex() 19 19 } 20 20 test { … … 22 22 createDataService.ensureSystemAndAdminAccess() 23 23 createDataService.createBaseData() 24 createDataService.start Lucene(false)24 createDataService.startSearchableIndex(false) 25 25 } 26 26 production { … … 28 28 createDataService.ensureSystemAndAdminAccess() 29 29 createDataService.createBaseData() 30 createDataService.start Lucene()30 createDataService.startSearchableIndex() 31 31 } 32 32 } -
trunk/grails-app/conf/Config.groovy
r608 r622 49 49 grails.spring.bean.packages = [] 50 50 51 /** 52 * Internal searchable index config. 53 */ 54 // Is set true by createDataService.startSearchableIndex() once bootstrap completes. 55 appSearchable.cascadeOnUpdate = false 56 57 /** 58 * Directory configuration. 59 * Pickup the Tomcat/Catalina directory else use the target or current dir. 60 */ 61 def fs = File.separator // Local variable. 62 globalDirs.targetDir = new File("target${fs}").isDirectory() ? "target${fs}" : '' 63 globalDirs.catalinaBase = System.properties.getProperty('catalina.base') 64 globalDirs.logDirectory = globalDirs.catalinaBase ? "${globalDirs.catalinaBase}${fs}logs${fs}" : globalDirs.targetDir 65 globalDirs.workDirectory = globalDirs.catalinaBase ? "${globalDirs.catalinaBase}${fs}work${fs}" : globalDirs.targetDir 66 globalDirs.searchableIndexDirectory = "${globalDirs.workDirectory}SearchableIndex${fs}${appName}${fs}" 51 67 52 68 /** … … 58 74 * Basic log levels are ALL < TRACE < DEBUG < INFO < WARN < ERROR < FATAL < OFF 59 75 */ 60 // Pickup the Tomcat/Catalina work directory else use the current or temp dir.61 def catalinaBase = System.properties.getProperty('catalina.base')62 def fs = File.separator63 def logDirectory = catalinaBase ? "${catalinaBase}${fs}logs${fs}" : ''64 76 65 77 log4j = { … … 73 85 // Custom log file. 74 86 rollingFile name:"appLog", 75 file:"${ logDirectory}${appName}.log".toString(),87 file:"${globalDirs.logDirectory}${appName}.log".toString(), 76 88 maxFileSize:'300kB', 77 89 maxBackupIndex:1, … … 99 111 error 'grails.app.service.NavigationService' 100 112 error 'grails.app.service.com.zeddware.grails.plugins.filterpane.FilterService' 113 info 'org.codehaus.groovy.grails.plugins.searchable' 114 //info 'org.compass' 101 115 error 'grails.app.task' // Quartz jobs. 102 info 'grails.app.task.Inventory ReindexJob'116 info 'grails.app.task.InventoryIndexJob' 103 117 104 118 // Move anything that should behave differently into this section. -
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.