JmesaGrailsPlugin.groovy 898 Bytes
Newer Older
janosch's avatar
janosch committed
1
class JmesaGrailsPlugin {
janosch's avatar
janosch committed
2
3
  def version = "0.3"
  def grailsVersion = "2.0.0 > *"
janosch's avatar
janosch committed
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
  def dependsOn = [:]
  def pluginExcludes = [
          "grails-app/views/error.gsp"
  ]

  def author = "Stephan Janosch"
  def authorEmail = "janosch@mpi-cbg.de"
  def title = "Basic JMESA plugin, which brings all needed files along."
  def description = '''\\
A simple Plugin, which allows you to use JMESA on the API level inside your grails project.
'''

  def doWithWebDescriptor = { xml ->
    def contextParam = xml."context-param"
    contextParam[contextParam.size() - 1] +
//            {
//      'context-param' {
//        'param-name'('jmesaMessagesLocation')
//        'param-value'('org/jmesa/core/message/jmesaResourceBundle')
//      }
//    } +
            {
      'context-param' {
        'param-name'('jmesaPreferencesLocation')
        'param-value'('/jmesa.properties')
      }
    }


  }
}