Ignore:
Timestamp:
Mar 22, 2011, 4:33:49 PM (6 years ago)
Author:
t.w.abma@…
Message:
  • importer wizard webtest working
  • native file input HTML element didn't work inside AjaxFlow, so used hidden importfile variable
  • added check for development or test environment in configuration file
  • added webtestfiles folder to web-apps containing Excel files to test
File:
1 edited

Legend:

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

    r1651 r1658  
    133133// Otherwise, it should be given as an absolute path (e.g. '/home/user/sequences')
    134134// The directory should be writable by the webserver user
    135 uploads.uploadDir = (new File("/tmp")?.canWrite()) ? "/tmp" : "fileuploads"
     135if (GrailsUtil.Environment.current == Environment.TEST) {
     136    uploads.uploadDir = "webtestfiles"
     137} else
     138if (GrailsUtil.Environment.current == Environment.DEVELOPMENT) {
     139    uploads.uploadDir = (new File("/tmp")?.canWrite()) ? "/tmp" : "fileuploads"   
     140}
Note: See TracChangeset for help on using the changeset viewer.