Ignore:
Timestamp:
Jul 10, 2010, 10:48:50 PM (14 years ago)
Author:
gav
Message:

Apply bug fix for ticket #76.
Rename all instances of Lucene to Searchable.
Improved global directory config.
Add log levels for searchable plugin and compass.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/conf/Config.groovy

    r608 r622  
    4949grails.spring.bean.packages = []
    5050
     51/**
     52* Internal searchable index config.
     53*/
     54// Is set true by createDataService.startSearchableIndex() once bootstrap completes.
     55appSearchable.cascadeOnUpdate = false
     56
     57/**
     58* Directory configuration.
     59* Pickup the Tomcat/Catalina directory else use the target or current dir.
     60*/
     61def fs = File.separator // Local variable.
     62globalDirs.targetDir = new File("target${fs}").isDirectory() ? "target${fs}" : ''
     63globalDirs.catalinaBase = System.properties.getProperty('catalina.base')
     64globalDirs.logDirectory = globalDirs.catalinaBase ? "${globalDirs.catalinaBase}${fs}logs${fs}" : globalDirs.targetDir
     65globalDirs.workDirectory = globalDirs.catalinaBase ? "${globalDirs.catalinaBase}${fs}work${fs}" : globalDirs.targetDir
     66globalDirs.searchableIndexDirectory = "${globalDirs.workDirectory}SearchableIndex${fs}${appName}${fs}"
    5167
    5268/**
     
    5874 * Basic log levels are ALL < TRACE < DEBUG < INFO < WARN < ERROR < FATAL < OFF
    5975 */
    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.separator
    63 def logDirectory = catalinaBase ? "${catalinaBase}${fs}logs${fs}" : ''
    6476
    6577log4j = {
     
    7385        // Custom log file.
    7486        rollingFile name:"appLog",
    75                         file:"${logDirectory}${appName}.log".toString(),
     87                        file:"${globalDirs.logDirectory}${appName}.log".toString(),
    7688                        maxFileSize:'300kB',
    7789                        maxBackupIndex:1,
     
    99111    error 'grails.app.service.NavigationService'
    100112    error 'grails.app.service.com.zeddware.grails.plugins.filterpane.FilterService'
     113    info 'org.codehaus.groovy.grails.plugins.searchable'
     114    //info 'org.compass'
    101115    error 'grails.app.task' // Quartz jobs.
    102     info 'grails.app.task.InventoryReindexJob'
     116    info 'grails.app.task.InventoryIndexJob'
    103117
    104118    // Move anything that should behave differently into this section.
Note: See TracChangeset for help on using the changeset viewer.