public class SubmoduleValidator extends Object
Modifier and Type | Class and Description |
---|---|
static class |
SubmoduleValidator.SubmoduleValidationException
Error validating a git submodule declaration
|
Constructor and Description |
---|
SubmoduleValidator() |
Modifier and Type | Method and Description |
---|---|
static void |
assertValidGitModulesFile(String gitModulesContents)
Validate a .gitmodules file
|
static void |
assertValidSubmoduleName(String name)
Validate name for a submodule
|
static void |
assertValidSubmodulePath(String path)
Validate path for a submodule
|
static void |
assertValidSubmoduleUri(String uri)
Validate URI for a submodule
|
public static void assertValidSubmoduleName(String name) throws SubmoduleValidator.SubmoduleValidationException
name
- name of a submoduleSubmoduleValidator.SubmoduleValidationException
- name doesn't seem valid (detail in message)public static void assertValidSubmoduleUri(String uri) throws SubmoduleValidator.SubmoduleValidationException
uri
- uri of a submoduleSubmoduleValidator.SubmoduleValidationException
- uri doesn't seem validpublic static void assertValidSubmodulePath(String path) throws SubmoduleValidator.SubmoduleValidationException
path
- path of a submoduleSubmoduleValidator.SubmoduleValidationException
- path doesn't look rightpublic static void assertValidGitModulesFile(String gitModulesContents) throws SubmoduleValidator.SubmoduleValidationException
gitModulesContents
- Contents of a .gitmodule file. They will be parsed internally.SubmoduleValidator.SubmoduleValidationException
- if the contents don't look like a configuration file or field
values are not validCopyright © 2020 Eclipse JGit Project. All rights reserved.