Package io.cucumber.core.feature
Class FeaturePath
java.lang.Object
io.cucumber.core.feature.FeaturePath
A feature path is a URI to a single feature file or directory of features.
This URI can either be absolute: scheme:/absolute/path/to.feature, or
relative to the current working directory:
scheme:relative/path/to.feature. In either form, when the scheme is
omitted file will be assumed.
On systems that use a File.separatorChar other then `/`
File.separatorChar can be used as a path separator. When doing so
when the scheme must be omitted: path\to.feature. It is
recommended to use `/` as the path separator.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static booleanprivate static booleannonStandardPathSeparatorInUse(String featureIdentifier) private static Stringstatic URIprivate static URIparseAssumeFileScheme(String featureIdentifier) private static URIparseProbableURI(String featureIdentifier) private static booleanpathContainsWindowsDrivePattern(String featureIdentifier) private static booleanprobablyURI(String featureIdentifier) private static StringreplaceNonStandardPathSeparator(String featureIdentifier)
-
Constructor Details
-
FeaturePath
private FeaturePath()
-
-
Method Details
-
parse
-
nonStandardPathSeparatorInUse
-
replaceNonStandardPathSeparator
-
parseAssumeFileScheme
-
isWindowsOS
private static boolean isWindowsOS() -
pathContainsWindowsDrivePattern
-
probablyURI
-
parseProbableURI
-
normalize
-