Permalink
Browse files

renamed to rabbitmq-tasks

  • Loading branch information...
1 parent 78749de commit 60a66e6d7e5c7ee8c66207c9fc347d1ed476828f @fterrier committed Oct 8, 2012
@@ -18,7 +18,7 @@ class TasksGrailsPlugin {
]
// TODO Fill in these fields
- def title = "Tasks Plugin" // Headline display name of the plugin
+ def title = "Rabbitmq Tasks Plugin" // Headline display name of the plugin
def author = "François Terrier"
def authorEmail = "fterrier@gmail.com"
def description = '''\
@@ -28,7 +28,7 @@ them, and aborting them.
'''
// URL to the plugin's documentation
- def documentation = "http://grails.org/plugin/tasks"
+ def documentation = "http://grails.org/plugin/rabbitmq-tasks"
// Extra (optional) plugin metadata
@@ -42,6 +42,6 @@ them, and aborting them.
def issueManagement = [ system: "JIRA", url: "http://jira.grails.org/browse/GPTASKS" ]
// Online location of the plugin's browseable source code.
- def scm = [ url: "http://github.com/fterrier/grails-tasks/" ]
+ def scm = [ url: "http://github.com/fterrier/grails-rabbitmq-tasks/" ]
}
@@ -1,5 +1,5 @@
#Grails Metadata file
#Fri Sep 14 08:39:24 CAT 2012
app.grails.version=2.1.0
-app.name=tasks
+app.name=rabbitmq-tasks
plugins.eclipse-scripts=1.0.6
@@ -11,11 +11,13 @@ grails.project.dependency.resolution = {
log "warn" // log level of Ivy resolver, either 'error', 'warn', 'info', 'debug' or 'verbose'
repositories {
grailsRepo "http://grails.org/plugins"
- // grailsCentral()
+ grailsPlugins()
+ grailsCentral()
+ grailsHome()
// uncomment the below to enable remote dependency resolution
// from public Maven repositories
+ mavenCentral()
//mavenLocal()
- //mavenCentral()
//mavenRepo "http://snapshots.repository.codehaus.org"
//mavenRepo "http://repository.codehaus.org"
//mavenRepo "http://download.java.net/maven/2/"
@@ -12,6 +12,7 @@ import org.apache.commons.io.IOUtils;
import org.apache.commons.lang.NotImplementedException
import org.apache.shiro.SecurityUtils;
import org.chai.task.Task.TaskStatus
+import org.codehaus.groovy.grails.commons.ConfigurationHolder;
import org.springframework.web.multipart.MultipartFile
class TaskController {
@@ -23,6 +24,17 @@ class TaskController {
return params.targetURI?: "/"
}
+ /**
+ * Lists all tasks currently saved in the database
+ */
+ def list = {
+ params.max = Math.min(params.max ? params.int('max') : grailsApplication.config.site.entity.list.max, 100)
+ params.offset = params.offset ? params.int('offset'): 0
+
+ def tasks = Task.list(params)
+
+ render (view: '/task/list', model:[tasks: tasks])
+ }
/**
* Ajax call that gets the progress of an individual task

0 comments on commit 60a66e6

Please sign in to comment.