MCPcopy Create free account
hub / github.com/GateNLP/gate-core / loadPlugin

Method loadPlugin

src/main/java/gate/Utils.java:1255–1263  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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.

Callers

nothing calls this directly

Calls 5

getGateHomeMethod · 0.95
getCreoleRegisterMethod · 0.95
toURLMethod · 0.80
toURIMethod · 0.80
registerPluginMethod · 0.65

Tested by

no test coverage detected