Package net.shibboleth.idp.admin.impl
Class JarCheckCLI
java.lang.Object
net.shibboleth.ext.spring.cli.AbstractCommandLine<T>
net.shibboleth.idp.cli.AbstractIdPHomeAwareCommandLine<JarCheckArguments>
net.shibboleth.idp.admin.impl.JarCheckCLI
Program to check for potential jar clashes.
-
Nested Class Summary
Nested classes/interfaces inherited from class net.shibboleth.ext.spring.cli.AbstractCommandLine
AbstractCommandLine.TerminalCodes
-
Field Summary
FieldsModifier and TypeFieldDescriptionJar files Distributions .private org.slf4j.Logger
Logger.Jar files Plugin Folder.Jar files in edit-webapp.Fields inherited from class net.shibboleth.ext.spring.cli.AbstractCommandLine
ARGS_PROPERTY, RC_INIT, RC_IO, RC_OK, RC_UNKNOWN
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate void
Add the names to the Map, checking for already existing.private void
detailed
(JarCheckArguments args) Do a detailed check.protected int
doRun
(JarCheckArguments args) private void
Do a general test.protected Class<JarCheckArguments>
protected org.slf4j.Logger
protected String
private void
Check for the same file in two places and if asked for.return a list of all the files in the lib file below the webapp folder provided.private void
static void
CLI entry point.make the file names look more 'usual'.private void
processClassNames
(Map<String, String> namesSoFar, Path jar) List all the class names in the jar provided.private void
Look at all the class names in the jars provided.Methods inherited from class net.shibboleth.idp.cli.AbstractIdPHomeAwareCommandLine
getHttpClient, getHttpClientSecurityParameters
Methods inherited from class net.shibboleth.ext.spring.cli.AbstractCommandLine
getAdditionalSpringResources, getApplicationContext, initLogging, run, setContextInitializer
-
Field Details
-
log
@Nullable private org.slf4j.Logger logLogger. -
webAppJars
Jar files in edit-webapp. -
pluginJars
Jar files Plugin Folder. -
distJars
Jar files Distributions .
-
-
Constructor Details
-
JarCheckCLI
public JarCheckCLI()
-
-
Method Details
-
loadJarFiles
- Parameters:
args
- the arguments
-
listJars
return a list of all the files in the lib file below the webapp folder provided.- Parameters:
webapp
- folder to start at.- Returns:
- the list of names as a strung
-
listAndExactCheck
Check for the same file in two places and if asked for. output the sorted list- Parameters:
args
-
-
addAndCheck
private void addAndCheck(Map<String, String> allNames, List<String> jars, String source, String type) Add the names to the Map, checking for already existing.- Parameters:
allNames
- the mapjars
- the namessource
- where the jar came fromtype
- what we are checking
-
getArgumentClass
- Specified by:
getArgumentClass
in classAbstractCommandLine<JarCheckArguments>
-
getVersion
- Specified by:
getVersion
in classAbstractCommandLine<JarCheckArguments>
-
getLogger
protected org.slf4j.Logger getLogger()- Specified by:
getLogger
in classAbstractCommandLine<JarCheckArguments>
-
fileNamesOnly
Do a general test.- Parameters:
args
-
-
normalize
make the file names look more 'usual'.- Parameters:
fileNames
-- Returns:
- the processed names
-
detailed
Do a detailed check.- Parameters:
args
-
-
processClassNames
Look at all the class names in the jars provided.- Parameters:
namesSoFar
- the class names we have foundbase
- The directory where the names livejars
- The Jar Names
-
processClassNames
List all the class names in the jar provided.- Parameters:
namesSoFar
- the class names we have foundjar
- The far file
-
doRun
- Overrides:
doRun
in classAbstractIdPHomeAwareCommandLine<JarCheckArguments>
-
main
CLI entry point.- Parameters:
args
- arguments
-