public class ShowAutomaticModuleNames extends Object
.jar file or a directory of them.| Modifier and Type | Class and Description |
|---|---|
private static class |
ShowAutomaticModuleNames.TerminationException
Throw one of these to cause the main program to terminate.
|
| Modifier and Type | Field and Description |
|---|---|
private static String |
AUTO_MODULE_NAME |
| Constructor and Description |
|---|
ShowAutomaticModuleNames() |
| Modifier and Type | Method and Description |
|---|---|
private String |
getAutomaticModuleName(JarFile jarFile)
Fetch the automatic module name (if any) from a
.jar file. |
static void |
main(String[] args)
Main program.
|
private void |
run(String[] args)
Runnable main program, wrapped by
main in an exception handler. |
private void |
runDirectory(File directory)
Process all of the
.jar files in a given directory, and present
the results in a readable way. |
private static final String AUTO_MODULE_NAME
@Nullable private String getAutomaticModuleName(@Nonnull JarFile jarFile) throws ShowAutomaticModuleNames.TerminationException
.jar file.jarFile - .jar file to processnullShowAutomaticModuleNames.TerminationExceptionprivate void runDirectory(@Nonnull File directory) throws ShowAutomaticModuleNames.TerminationException
.jar files in a given directory, and present
the results in a readable way.directory - ShowAutomaticModuleNames.TerminationExceptionprivate void run(@Nonnull String[] args) throws ShowAutomaticModuleNames.TerminationException
main in an exception handler.args - command-line argumentsShowAutomaticModuleNames.TerminationException - if something bad happenspublic static void main(String[] args)
args - command-line argumentsCopyright © 1999–2019 Shibboleth Consortium. All rights reserved.