Class Config
java.lang.Object
edu.university.ecs.lab.common.config.Config
Model to represent the JSON configuration file
Some additional notes, this object is p
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionThis method gets the repository name parsed from the repositoryURLprivate void
validateConfig
(String systemName, String repositoryURL, String branch) Check that config file is valid and has all required fieldsprivate void
validateRepositoryURL
(String repositoryURL) The list of repository objects as indicated by config
-
Field Details
-
GIT_SCHEME_DOMAIN
- See Also:
-
GIT_PATH_EXTENSION
- See Also:
-
systemName
The name of the system analyzed -
repositoryURL
The path to write cloned repository files to -
branch
Initial starting commit for repository
-
-
Constructor Details
-
Config
- Throws:
Exception
-
-
Method Details
-
validateConfig
Check that config file is valid and has all required fields -
validateRepositoryURL
The list of repository objects as indicated by config -
getRepoName
This method gets the repository name parsed from the repositoryURL- Returns:
- the plain string repository name with no path related characters
-