Load a plugin from the default GATE plugins directory. This will load the plugin with the specified directory name from the default GATE plugins path, if GATE knows its own location. @param dirName The directory name of the plugin within the standard GATE plugins directory.
(String dirName)
| 1253 | * @param dirName The directory name of the plugin within the standard GATE plugins directory. |
| 1254 | */ |
| 1255 | @Deprecated |
| 1256 | public static void loadPlugin(String dirName) { |
| 1257 | File gatehome = Gate.getGateHome(); |
| 1258 | if(gatehome == null) { |
| 1259 | throw new GateRuntimeException("Cannot load Plugin, Gate home location not known"); |
| 1260 | } |
| 1261 | File pluginDir = new File(new File(gatehome,"plugins"),dirName); |
| 1262 | loadPlugin(pluginDir); |
| 1263 | } |
| 1264 | |
| 1265 | /** |
| 1266 | * Load a plugin from the specified directory. |
nothing calls this directly
no test coverage detected