plugins { yui3 { /** * When this is set to true, the project will be mapped to root context. default is false */ rootContext = false /** * This plugin requires 'grails.mime.file.extensions' be set to true. By default, it will override the settings to true. * Setting fileExtensionOverride = true will stop this plugin from overriding the project configuration. */ fileExtensionOverride = true//true is default, it has no effect /** * map from a public uri under contextPath to a physical path under /web-app * 'to' - either file system path relative to project root, or a remote address (starts with http:// ). If no 'to' * is defined, or if the 'to' path * 'fromContext' = false; //if enabled, in run-app mode, current context is appended to 'from' as prefix * */ 'mappings' { /** * to = '/js/yui' * TODO check fromContext = true; */ 'combo' {from = '/combo'; to = ['zip:/js/yui/yui_2.7.0b.zip!yui', 'zip:/js/yui/yui_3.0.0pr2.zip!yui']} /** * remote example: to = "http://yui.yahooapis.com/3.0.0pr2/build", to = '/js/yui/3.0.0pr2/build' */ 'yui3' {from = "/js/yui3"; to = ['/js/yui/3.0.0pr2/build', 'zip:/js/yui/yui_3.0.0pr2.zip!yui/build']} 'yui2' {from = "/js/yui2"; to = 'zip:/js/yui/yui_2.7.0b.zip!yui/build';} //'ext' { from = "/js/ext"; to = '/js/grails-yui3'; pack = true} } /** * enable/disable JavaScript cache. By default, without defining this parameter, a filter is added to disable caching * in development mode. If set to false, no filter will be added to disable cache. If set to true, the filter will * be added in any mode. */ //noCache = false /** * Turn URL in YUI CSS file to absolute path (e.g. url(/js/yui/2.6.0/build/assets/skins/sam/sprite.png) ) */ urlRewriteForCSS = true; //true has no effect as it is the default } } // locations to search for config files that get merged into the main config // config files can either be Java properties files or ConfigSlurper scripts // grails.config.locations = [ "classpath:${appName}-config.properties", // "classpath:${appName}-config.groovy", // "file:${userHome}/.grails/${appName}-config.properties", // "file:${userHome}/.grails/${appName}-config.groovy"] // if(System.properties["${appName}.config.location"]) { // grails.config.locations << "file:" + System.properties["${appName}.config.location"] // } grails.mime.file.extensions = true // enables the parsing of file extensions from URLs into the request format grails.mime.use.accept.header = false grails.mime.types = [html: ['text/html', 'application/xhtml+xml'], xml: ['text/xml', 'application/xml'], text: 'text-plain', js: 'text/javascript', rss: 'application/rss+xml', atom: 'application/atom+xml', css: 'text/css', csv: 'text/csv', all: '*/*', json: ['application/json', 'text/json'], form: 'application/x-www-form-urlencoded', multipartForm: 'multipart/form-data' ] // The default codec used to encode data with ${} grails.views.default.codec = "none" // none, html, base64 grails.views.gsp.encoding = "UTF-8" grails.converters.encoding = "UTF-8" // enabled native2ascii conversion of i18n properties files grails.enable.native2ascii = true // set per-environment serverURL stem for creating absolute links environments { production { grails.serverURL = "http://www.changeme.com" } } // log4j configuration log4j = { error 'org.codehaus.groovy.grails.web.servlet', // controllers 'org.codehaus.groovy.grails.web.pages', // GSP 'org.codehaus.groovy.grails.web.sitemesh', // layouts 'org.codehaus.groovy.grails."web.mapping.filter', // URL mapping 'org.codehaus.groovy.grails."web.mapping', // URL mapping 'org.codehaus.groovy.grails.commons', // core / classloading 'org.codehaus.groovy.grails.plugins', // plugins 'org.codehaus.groovy.grails.orm.hibernate', // hibernate integration 'org.springframework', 'org.hibernate' warn 'org.mortbay.log' trace 'org.grails.plugins.yui3.Yui3TagLib' info 'org.grails.plugins.yui3' }