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

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.