source: trunk/grails-app/conf/Config.groovy @ 24

Last change on this file since 24 was 24, checked in by robert@…, 9 years ago

Improved export of fasta files and added properties to assaysamples

File size: 6.3 KB
Line 
1// ##################################################################################
2// DO NOT Change these settings!!!
3// You can overwrite them by adding your own configuration file in ~/.grails/[environment]-[appName].properties
4
5// locations to search for config files that get merged into the main config
6// config files can either be Java properties files or ConfigSlurper scripts
7grails.config.locations = [
8        // the default per-environment configuration
9        // (e.g. grails-app/conf/config-development.properties)
10        "classpath:config-${grails.util.GrailsUtil.environment}.properties",
11        "file:${ basedir }/grails-app/conf/config-${grails.util.GrailsUtil.environment}.properties",
12        "classpath:config-${grails.util.GrailsUtil.environment}.groovy",
13       
14        // the external configuration to override the default
15        // configuration (e.g. ~/.grails-config/ci-gscf.properties)
16        "file:${userHome}/.grails-config/${grails.util.GrailsUtil.environment}-${appName}.properties",
17        "file:${userHome}/.grails-config/${grails.util.GrailsUtil.environment}-${appName}.groovy",
18        "file:${userHome}/.grails/${grails.util.GrailsUtil.environment}-${appName}.properties",
19        "file:${userHome}/.grails/${grails.util.GrailsUtil.environment}-${appName}.groovy"
20]
21
22// Add extra location if desired
23if(System.properties["${appName}.config.location"]) {
24        grails.config.locations << "file:" + System.properties["${appName}.config.location"]
25}
26
27// Whether to synchronize with gscf or not. By default, synchronization is turned on
28metagenomics.synchronization = true
29
30// By default, Metagenomics only fetches studies that have been changed by GSCF. GSCF sends
31// notifications to the module, when something changes. However, it is possible that these messages
32// can't be delivered or some other error happens. In that case, the data in the module is out of sync.
33// To prevent that, every now and then a complete synchronization is performed. The frequency of this
34// operation can be set by the following parameter. The parameter determines the number of seconds
35// between two consecutive full synchronizations. Setting it to zero disables full synchronization, but
36// is strongly discouraged.
37metagenomics.fullSynchronization = 24 * 3600 // 1 day
38
39// Temporary directory to upload files to.
40// If the directory is given relative (e.g. 'fileuploads/temp'), it is taken relative to the web-app directory
41// Otherwise, it should be given as an absolute path (e.g. '/home/user/sequences')
42// The directory should be writable by the webserver user
43metagenomics.fileUploadDir = "fileuploads/temp"
44
45// Maximum age that uploaded files should be kept on the server before deleting them. When a user uploads a file,
46// but doesn't process the file (e.g. because he leaves the page beforehand or his computer crashes), the files
47// remain in the upload directory. This mechanism ensures that the upload directory is cleaned after some time.
48// The time is given in seconds.
49metagenomics.fileUploadMaxAge = 2 * 24 * 3600 // 2 days
50
51// Directory to save the uploaded files permanently
52// If the directory is given relative (e.g. 'fileuploads/temp'), it is taken relative to the web-app directory
53// Otherwise, it should be given as an absolute path (e.g. '/home/user/sequences')
54// The directory should be writable by the webserver user
55metagenomics.fileDir = "fileuploads/permanent"
56
57// Filename of the (.fna, .qual and .oligos) files that are exported
58// Only the part before the extension is mentioned. If you enter "sequences", the exported files will be
59// sequences.fna, sequences.qual and sequences.oligos
60metagenomics.exportFilename = "1.TCA.454Reads"
61
62// Path in GSCF that is used after baseURL for adding a new study
63gscf.addStudyPath = "/simpleWizard"
64
65grails.project.groupId = appName // change this to alter the default package name and Maven publishing destination
66grails.mime.file.extensions = true // enables the parsing of file extensions from URLs into the request format
67grails.mime.use.accept.header = false
68grails.mime.types = [ html: ['text/html','application/xhtml+xml'],
69                      xml: ['text/xml', 'application/xml'],
70                      text: 'text/plain',
71                      js: 'text/javascript',
72                      rss: 'application/rss+xml',
73                      atom: 'application/atom+xml',
74                      css: 'text/css',
75                      csv: 'text/csv',
76                      all: '*/*',
77                      json: ['application/json','text/json'],
78                      form: 'application/x-www-form-urlencoded',
79                      multipartForm: 'multipart/form-data'
80                    ]
81
82// URL Mapping Cache Max Size, defaults to 5000
83//grails.urlmapping.cache.maxsize = 1000
84
85// The default codec used to encode data with ${}
86grails.views.default.codec = "none" // none, html, base64
87grails.views.gsp.encoding = "UTF-8"
88grails.converters.encoding = "UTF-8"
89
90// enable Sitemesh preprocessing of GSP pages
91grails.views.gsp.sitemesh.preprocess = true
92
93// Set to false to use the new Grails 1.2 JSONBuilder in the render method
94grails.json.legacy.builder = false
95
96// enabled native2ascii conversion of i18n properties files
97grails.enable.native2ascii = true
98
99// whether to install the java.util.logging bridge for sl4j. Disable for AppEngine!
100grails.logging.jul.usebridge = true
101
102// packages to include in Spring bean scanning
103grails.spring.bean.packages = []
104
105// log4j configuration
106log4j = {
107    // Example of changing the log pattern for the default console
108    // appender:
109    //
110    //appenders {
111    //    console name:'stdout', layout:pattern(conversionPattern: '%c{2} %m%n')
112    //}
113
114        trace   'grails.app'
115       
116    error  'org.codehaus.groovy.grails.web.servlet',  //  controllers
117           'org.codehaus.groovy.grails.web.pages', //  GSP
118           'org.codehaus.groovy.grails.web.sitemesh', //  layouts
119           'org.codehaus.groovy.grails.web.mapping.filter', // URL mapping
120           'org.codehaus.groovy.grails.web.mapping', // URL mapping
121           'org.codehaus.groovy.grails.commons', // core / classloading
122           'org.codehaus.groovy.grails.plugins', // plugins
123           'org.codehaus.groovy.grails.orm.hibernate', // hibernate integration
124           'org.springframework',
125           'org.hibernate',
126           'net.sf.ehcache.hibernate'
127
128    warn   'org.mortbay.log'
129}
130
131// jquery plugin
132grails.views.javascript.library = "jquery"
133jquery.version = '1.4.4'
Note: See TracBrowser for help on using the repository browser.