title: How do I derive physical path of a relative directory inside Config.groovy?
body: <p>I am trying to set up Weceem using the source from GitHub.  It requires a physical path definition for the uploads directory, and for a directory for appears to be used for writing searchable indexes. The default setting for uploads is:</p>
  
  <pre><code>weceem.upload.dir = 'file:/var/www/weceem.org/uploads/'
  </code></pre>
  
  <p>I would like to define those using relative paths like WEB-INF/resources/uploads.  I tried a methodology I have used previously for accessing directories with relative path like this:</p>
  
  <pre><code>  File uploadDirectory = ApplicationHolder.application.parentContext.getResource("WEB-INF/resources/uploads").file
    def absoluteUploadDirectory = uploadDirectory.absolutePath
    weceem.upload.dir = 'file:'+absoluteUploadDirectory
  </code></pre>
  
  <p>However, 'parentContext' under ApplicationHolder.application is NULL.  Can anyone offer a solution to this that would allow me to use relative paths?</p>