public class ServerPluginValidatorUtil extends Object
SYSPROP_VALIDATE_SERVERPLUGINS whose value is a comma-separated
list of server plugin jar filenames. If you do not set that system property
and you do not pass arguments, this will look for any and all plugin descriptors
it can find in jar files found in the class's classloader and validate all
of those plugin jars.| Constructor and Description |
|---|
ServerPluginValidatorUtil() |
| Modifier and Type | Method and Description |
|---|---|
static void |
main(String[] args)
See
validatePlugins(String[]) for information on what plugins get validated. |
boolean |
validatePlugins(List<URL> jars) |
boolean |
validatePlugins(String[] pluginFileNames)
If one or more argument strings are provided, they will be assumed to be paths to the plugin jars to validate.
|
public static void main(String[] args)
validatePlugins(String[]) for information on what plugins get validated.
The last line this will output will be "!OK!" and exit with an exit code of 0 if everything is OK.
The last line this will output will be "!FAILURE!" and exit with an exit code of 1 if one or more plugins failed validation.args - 0 or more plugin jar file pathspublic boolean validatePlugins(String[] pluginFileNames) throws Exception
SYSPROP_VALIDATE_SERVERPLUGINS is set, its value
is assumed to be a comma-separated list of plugin filenames.
If no args are passed in, this class's classloader will be used to find the plugins to validate.pluginFileNames - 0 or more plugin jar file pathsException - on some error that caused the validation to abortCopyright © 2008-2013 Red Hat, Inc.. All Rights Reserved.