pathToGav
public Gav pathToGav(java.lang.String str)
Calculates GAV from provided repository path. The path has to be absolute starting from repository root.
If path represents a proper artifact path (conforming to given layout), GAV is "calculated" from it and is
returned. If path represents some file that is not an artifact, but is part of the repository layout (like
maven-metadata.xml), or in any other case it returns null.
- Specified by:
pathToGav
in interface GavCalculator
- Parameters:
str
- the repository path
- Returns:
- Gav parsed from the path