Page History
...
then "taskProperty()" will resolve to [dspace]/config/modules/vscan.cfg
when called from ClamAv task, but [dspace]/config/modules/virusscan.cfg
when called from ConflictTask's code. Note that the '"vscan' " etc are locally assigned names, so we can always prevent the '"collisions'mentioned" mentioned, and we make the tasks much more portable, since we remove the '"hard-coding' " of config names.
The entire 'API' for task properties is:
...
Another use of task properties is to support multiple task profiles. Suppose we have a task that we want to operate in one of two modes. A good example would be a mediafilter task that produces a thumbnail. We can either create one if it doesn't exist, or run with '"-force' " which will create one regardless. Suppose this behavior was controlled by a property in a config file. If we configured the task as "thumbnail", then we would have in [dspace]/config/modules/thumbnail.cfg
:
...