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 |
---|
7 | grails.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 |
---|
23 | if(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 |
---|
28 | massSequencing.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. |
---|
37 | massSequencing.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 |
---|
43 | massSequencing.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. |
---|
49 | massSequencing.fileUploadMaxAge = 24 * 3600 // 1 day |
---|
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 |
---|
55 | massSequencing.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 |
---|
60 | massSequencing.exportFilename = "1.TCA.454Reads" |
---|
61 | |
---|
62 | // Path in GSCF that is used after baseURL for adding a new study |
---|
63 | gscf.addStudyPath = "/simpleWizard" |
---|
64 | gscf.registerSearchPath = "/advancedQuery/refineExternal" |
---|
65 | |
---|
66 | grails.project.groupId = appName // change this to alter the default package name and Maven publishing destination |
---|
67 | grails.mime.file.extensions = true // enables the parsing of file extensions from URLs into the request format |
---|
68 | grails.mime.use.accept.header = false |
---|
69 | grails.mime.types = [ html: ['text/html','application/xhtml+xml'], |
---|
70 | xml: ['text/xml', 'application/xml'], |
---|
71 | text: 'text/plain', |
---|
72 | js: 'text/javascript', |
---|
73 | rss: 'application/rss+xml', |
---|
74 | atom: 'application/atom+xml', |
---|
75 | css: 'text/css', |
---|
76 | csv: 'text/csv', |
---|
77 | all: '*/*', |
---|
78 | json: ['application/json','text/json'], |
---|
79 | form: 'application/x-www-form-urlencoded', |
---|
80 | multipartForm: 'multipart/form-data' |
---|
81 | ] |
---|
82 | |
---|
83 | // URL Mapping Cache Max Size, defaults to 5000 |
---|
84 | //grails.urlmapping.cache.maxsize = 1000 |
---|
85 | |
---|
86 | // The default codec used to encode data with ${} |
---|
87 | grails.views.default.codec = "none" // none, html, base64 |
---|
88 | grails.views.gsp.encoding = "UTF-8" |
---|
89 | grails.converters.encoding = "UTF-8" |
---|
90 | |
---|
91 | // enable Sitemesh preprocessing of GSP pages |
---|
92 | grails.views.gsp.sitemesh.preprocess = true |
---|
93 | |
---|
94 | // Set to false to use the new Grails 1.2 JSONBuilder in the render method |
---|
95 | grails.json.legacy.builder = false |
---|
96 | |
---|
97 | // enabled native2ascii conversion of i18n properties files |
---|
98 | grails.enable.native2ascii = true |
---|
99 | |
---|
100 | // whether to install the java.util.logging bridge for sl4j. Disable for AppEngine! |
---|
101 | grails.logging.jul.usebridge = true |
---|
102 | |
---|
103 | // packages to include in Spring bean scanning |
---|
104 | grails.spring.bean.packages = [] |
---|
105 | |
---|
106 | // log4j configuration |
---|
107 | log4j = { |
---|
108 | // Example of changing the log pattern for the default console |
---|
109 | // appender: |
---|
110 | // |
---|
111 | //appenders { |
---|
112 | // console name:'stdout', layout:pattern(conversionPattern: '%c{2} %m%n') |
---|
113 | //} |
---|
114 | |
---|
115 | // appenders { |
---|
116 | // file name:'file', file:'/home/robert/tmp/profiler.log' |
---|
117 | // file name:'sqlfile', file:'/home/robert/tmp/sql.log' |
---|
118 | // } |
---|
119 | |
---|
120 | trace 'grails.app' |
---|
121 | |
---|
122 | error 'org.codehaus.groovy.grails.web.servlet', // controllers |
---|
123 | 'org.codehaus.groovy.grails.web.pages', // GSP |
---|
124 | 'org.codehaus.groovy.grails.web.sitemesh', // layouts |
---|
125 | 'org.codehaus.groovy.grails.web.mapping.filter', // URL mapping |
---|
126 | 'org.codehaus.groovy.grails.web.mapping', // URL mapping |
---|
127 | 'org.codehaus.groovy.grails.commons', // core / classloading |
---|
128 | 'org.codehaus.groovy.grails.plugins', // plugins |
---|
129 | 'org.codehaus.groovy.grails.orm.hibernate', // hibernate integration |
---|
130 | 'org.springframework', |
---|
131 | 'org.hibernate', |
---|
132 | 'net.sf.ehcache.hibernate' |
---|
133 | |
---|
134 | warn 'org.mortbay.log' |
---|
135 | |
---|
136 | //info file: 'com.linkedin.grails' |
---|
137 | //trace sqlfile: 'org.hibernate.SQL' |
---|
138 | } |
---|
139 | |
---|
140 | // jquery plugin |
---|
141 | grails.views.javascript.library = "jquery" |
---|
142 | jquery.version = '1.4.4' |
---|