Changeset 598 for trunk/grails-app/conf


Ignore:
Timestamp:
Jun 17, 2010, 10:52:06 PM (14 years ago)
Author:
gav
Message:

Replace '/' with File.separator in config files.

Location:
trunk/grails-app/conf
Files:
2 edited

Legend:

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

    r595 r598  
    5858 * Basic log levels are ALL < TRACE < DEBUG < INFO < WARN < ERROR < FATAL < OFF
    5959 */
    60 // Pickup the Tomcat/Catalina logDirectory else use the current dir.
     60// Pickup the Tomcat/Catalina work directory else use the current or temp dir.
    6161def catalinaBase = System.properties.getProperty('catalina.base')
    62 def logDirectory = catalinaBase ? "${catalinaBase}/logs" : '.'
     62def fs = File.separator
     63def logDirectory = catalinaBase ? "${catalinaBase}${fs}logs${fs}" : ''
    6364
    6465log4j = {
     
    7273        // Custom log file.
    7374        rollingFile name:"appLog",
    74                         file:"${logDirectory}/${appName}.log".toString(),
     75                        file:"${logDirectory}${appName}.log".toString(),
    7576                        maxFileSize:'300kB',
    7677                        maxBackupIndex:1,
  • trunk/grails-app/conf/Searchable.groovy

    r571 r598  
    3232     * The default is "${user.home}/.grails/projects/${app.name}/searchable-index/${grails.env}"
    3333     */
    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.
    3535    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}"
    3738
    38     compassConnection = new File(indexDirectory).absolutePath
     39    compassConnection = new File("${indexDirectory}${appName}").absolutePath
    3940
    4041    /**
Note: See TracChangeset for help on using the changeset viewer.