roller-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Johnson (JIRA)" <j...@apache.org>
Subject [jira] Created: (ROL-1877) Improvements to enable "script task"
Date Mon, 06 Sep 2010 21:27:34 GMT
Improvements to enable "script task"
------------------------------------

                 Key: ROL-1877
                 URL: https://issues.apache.org/jira/browse/ROL-1877
             Project: Roller
          Issue Type: Improvement
            Reporter: David Johnson
            Assignee: David Johnson
            Priority: Minor


Roller has a scheduled-task subsystem so that it can run tasks every minute, hour or day.
Currently, you must write a Java class to implement a task and it would be nice if we had
a way to write a task in a scripting language so that the the script can be change/edited
while Roller is running and changing the script does not require a compilation step.

This is a proposal to change Roller's task system to enable the creation of script tasks,
i.e. tasks that can be configured to run Groovy or other JVM language scripts. To enable script
tasks, we have change Roller to allow you to use one Roller Task plugin multiple times in
a Roller configuration, each time with a different configuration. For example, you could create
a Groovy task that can be used multiple times -- each time with a different "script name"
parameter.

Specific changes:
- Change RollerTask.init() to take a string argument like so: RollerTask.init(String name).
- Change all classes that extend RollerTask to support the new method
- Change ThreadManagerImpl to pass in a name for each task created




-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message