Plugin Directory Manager

Description

The plugin directory manager installs or removes directories containing well-formed MAT plugins, 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.

Usage

Unix:

% $MAT_PKG_HOME/bin/MATManagePluginDirs

Windows native:

> %MAT_PKG_HOME%\bin\MATManagePluginDirs.cmd

Usage: MATManagePluginDirs [ install | remove | validate ] app_dir ...
MATManagePluginDirs list

Example

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 plugins.txt...
### Compiling Python files ...
% bin/MATManagePluginDirs list
.../MAT/sample/sample/ne (task: 'Named Entity')
% bin/MATManagePluginDirs remove $PWD/sample/ne
### Reading plugins.txt...
### Writing plugins.txt...
% bin/MATManagePluginDirs list
%

Windows native:

> cd %MAT_PKG_HOME%
> python bin\MATManagePluginDirs.cmd list
> python bin\MATManagePluginDirs.cmd install %CD%\sample\ne
### Writing plugins.txt...
### Compiling Python files ...
> python bin\MATManagePluginDirs.cmd list
...\MAT\sample\ne (task: 'Named Entity')
> python bin\MATManagePluginDirs.cmd remove %CD%\sample\ne
### Reading plugins.txt...
### Writing plugins.txt...
> 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.
>