Permalink
Newer
Older
100644 70 lines (54 sloc) 2.44 KB
Jan 6, 2015 @evast added plugin source code
1 class TransmartXnatImporterGrailsPlugin {
2 // the plugin version
3 def version = "0.1"
4 // the version or versions of Grails the plugin is designed for
5 def grailsVersion = "2.3 > *"
6 // resources that are excluded from plugin packaging
7 def pluginExcludes = [
8 "grails-app/views/error.gsp"
9 ]
10
11 // TODO Fill in these fields
12 def title = "Transmart Xnat Importer Plugin" // Headline display name of the plugin
13 def author = "Erwin Vast"
14 def authorEmail = "e.vast@erasmusmc.nl"
15 def description = '''\
16 Admin panel to configure and import image derived clinical data from XNAT to TranSMART.
17 '''
18
19 // URL to the plugin's documentation
20 def documentation = "http://grails.org/plugin/transmart-xnat-importer"
21
22 // Extra (optional) plugin metadata
23
24 // License: one of 'APACHE', 'GPL2', 'GPL3'
25 // def license = "APACHE"
26
27 // Details of company behind the plugin (if there is one)
28 // def organization = [ name: "My Company", url: "http://www.my-company.com/" ]
29
30 // Any additional developers beyond the author specified above.
31 // def developers = [ [ name: "Joe Bloggs", email: "joe@bloggs.net" ]]
32
33 // Location of the plugin's issue tracker.
34 // def issueManagement = [ system: "JIRA", url: "http://jira.grails.org/browse/GPMYPLUGIN" ]
35
36 // Online location of the plugin's browseable source code.
37 // def scm = [ url: "http://svn.codehaus.org/grails-plugins/" ]
38
39 def doWithWebDescriptor = { xml ->
40 // TODO Implement additions to web.xml (optional), this event occurs before
41 }
42
43 def doWithSpring = {
44 // TODO Implement runtime spring config (optional)
45 }
46
47 def doWithDynamicMethods = { ctx ->
48 // TODO Implement registering dynamic methods to classes (optional)
49 }
50
51 def doWithApplicationContext = { ctx ->
52 // TODO Implement post initialization spring config (optional)
53 }
54
55 def onChange = { event ->
56 // TODO Implement code that is executed when any artefact that this plugin is
57 // watching is modified and reloaded. The event contains: event.source,
58 // event.application, event.manager, event.ctx, and event.plugin.
59 }
60
61 def onConfigChange = { event ->
62 // TODO Implement code that is executed when the project configuration changes.
63 // The event is the same as for 'onChange'.
64 }
65
66 def onShutdown = { event ->
67 // TODO Implement code that is executed when the application shuts down (optional)
68 }
69 }