The plugin directory manager installs or removes directories
containing well-formed MAT tasks, or lists the registered plugins
along with the tasks they define. A well-formed MAT plugin
contains a task.xml file (which may define multiple tasks), as
described in the documentation on creating
a new task.
Unix:
% $MAT_PKG_HOME/bin/MATManagePluginDirs
Windows native:
> %MAT_PKG_HOME%\bin\MATManagePluginDirs.cmd
Usage: MATManagePluginDirs [ install | remove | validate ] app_dir ...
MATManagePluginDirs list
Let's say you have no plugins registered. The following sequence
of commands exemplifies the use of this tool.
Unix:
% cd $MAT_PKG_HOME
% bin/MATManagePluginDirs list
% bin/MATManagePluginDirs install $PWD/sample/ne
### Writing plugin record...
### Compiling Python files ...
% bin/MATManagePluginDirs list
.../MAT/sample/sample/ne (task: 'Named Entity')
% bin/MATManagePluginDirs remove $PWD/sample/ne
### Reading plugin record...
### Writing plugin record...
% bin/MATManagePluginDirs list
%
Windows native:
> cd %MAT_PKG_HOME%
> python bin\MATManagePluginDirs.cmd list
> python bin\MATManagePluginDirs.cmd install %CD%\sample\ne
### Writing plugin record...
### Compiling Python files ...
> python bin\MATManagePluginDirs.cmd list
...\MAT\sample\ne (task: 'Named Entity')
> python bin\MATManagePluginDirs.cmd remove %CD%\sample\ne
### Reading plugin record...
### Writing plugin record...
> python bin\MATManagePluginDirs.cmd list
>
If you want to see if the task is well-formed before you install
it, use the "validate" action:
Unix:
% cd $MAT_PKG_HOME
% bin/MATManagePluginDirs validate $PWD/sample/ne
No errors.
%
Windows native:
> cd %MAT_PKG_HOME%
> python bin\MATManagePluginDirs.cmd validate %CD%\sample\ne
No errors.
><