Skip to content

Commit

Permalink
plugins are a loading
Browse files Browse the repository at this point in the history
  • Loading branch information
nathandunn committed Mar 14, 2016
1 parent 5e75639 commit c4f346b
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 1 deletion.
35 changes: 35 additions & 0 deletions grails-app/conf/Config.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -344,3 +344,38 @@ auditLog {
logIds = true // log db-ids of associated objects.

}

jbrowse {
git {
url= "https://github.com/GMOD/jbrowse"
version= "master"
}
plugins {
WebApollo{
included = true
}
NeatHTMLFeatures{
included = true
}
NeatCanvasFeatures{
included = true
}
RegexSequenceSearch{
included = true
}
HideTrackLabels{
included = true
}
// MyVariantInfo {
// git = 'https://github.org/GMOD/myvariantinfo'
// branch = 'master'
// alwaysRecheck = "true"
// alwaysPull = "false"
// }
// SashimiPlot {
// git = 'https://github.org/cmdcolin/sashimiplot'
// branch = 'master'
// alwaysPull = "true"
// }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -341,10 +341,16 @@ class JbrowseController {
def plugins = grailsApplication.config.jbrowse?.plugins
// not sure if I do it this way or via the include
if(plugins){
if(!jsonObject.plugins){
jsonObject.plugins = new JSONArray()
}
for(plugin in plugins){
JSONObject pluginObject = new JSONObject()

pluginObject.name = plugin.key
pluginObject.location = "./plugins/${plugin.key}"
pluginObject.putAll(plugin.value)
jsonObject.plugins.add(pluginObject)
log.info "Loading plugin: ${pluginObject.name} details: ${pluginObject as JSON}"
}
}

Expand Down

0 comments on commit c4f346b

Please sign in to comment.