Skip to content

Commit

Permalink
Merge pull request #48 from tychobrailleur/quartz-support
Browse files Browse the repository at this point in the history
Fix integration with quartz plugin.
  • Loading branch information
Arsen A. Gutsal committed Jul 20, 2015
2 parents 57c7ebe + b51aa21 commit ceb6e02
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions RoutingGrailsPlugin.groovy
Expand Up @@ -107,7 +107,7 @@ class RoutingGrailsPlugin {
addDynamicMethods(application.serviceClasses, template)

if (isQuartzPluginInstalled(application)) {
addDynamicMethods(application.taskClasses, template)
addDynamicMethods(application.jobClasses, template)
}

// otherwise we autostart camelContext here
Expand Down Expand Up @@ -198,12 +198,6 @@ class RoutingGrailsPlugin {
}

private isQuartzPluginInstalled(application) {
// this is a nasty implementation... maybe there's something better?
try {
def tasks = application.taskClasses
return true
} catch (e) {
return false
}
return application.getArtefactInfo('Job') != null
}
}

0 comments on commit ceb6e02

Please sign in to comment.