@Component(role=GavCalculator.class, hint="maven1") public class M1GavCalculator extends java.lang.Object implements GavCalculator
GavCalculator. Heavily under-maintained.| Modifier and Type | Field and Description |
|---|---|
private static java.util.regex.Pattern |
pat1 |
private static java.util.regex.Pattern |
pat2 |
| Constructor and Description |
|---|
M1GavCalculator() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
gavToPath(Gav gav)
// XXX this is not accurate, m1 is using packaging as an artifact folder name.
|
Gav |
pathToGav(java.lang.String str)
Calculates GAV from provided repository path.
|
private static final java.util.regex.Pattern pat1
private static final java.util.regex.Pattern pat2
public Gav pathToGav(java.lang.String str)
GavCalculatorpathToGav in interface GavCalculatorstr - the repository pathpublic java.lang.String gavToPath(Gav gav)
gavToPath in interface GavCalculatororg.apache.maven.artifact.repository.layout.LegacyRepositoryLayout#pathOf(org.apache.maven.artifact.Artifact),
org.apache.maven.artifact.handler.DefaultArtifactHandler#getDirectory()