Package org.eclipse.tycho.pomless
Class TychoRepositoryMapping
- java.lang.Object
-
- org.eclipse.tycho.pomless.AbstractTychoMapping
-
- org.eclipse.tycho.pomless.AbstractXMLTychoMapping
-
- org.eclipse.tycho.pomless.TychoRepositoryMapping
-
- All Implemented Interfaces:
org.apache.maven.model.io.ModelReader
,org.sonatype.maven.polyglot.mapping.Mapping
@Component(role=org.sonatype.maven.polyglot.mapping.Mapping.class, hint="eclipse-repository") public class TychoRepositoryMapping extends AbstractXMLTychoMapping
Responsible for parsing eclipse-repository artifacts (updatesites, catgory.xml)
-
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.String
CATEGORY_XML
static java.lang.String
PACKAGING
private static java.lang.String
PRODUCT_EXTENSION
private static java.lang.String
UPDATE_SITE_SUFFIX
-
Fields inherited from class org.eclipse.tycho.pomless.AbstractTychoMapping
container, logger
-
-
Constructor Summary
Constructors Constructor Description TychoRepositoryMapping()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.String
getPackaging()
protected java.io.File
getPrimaryArtifact(java.io.File projectRoot)
private void
initFromCategory(org.apache.maven.model.Model model, org.w3c.dom.Element xml, java.io.File categoryXml)
private void
initFromProdcut(org.apache.maven.model.Model model, org.w3c.dom.Element xml)
protected void
initModelFromXML(org.apache.maven.model.Model model, org.w3c.dom.Element xml, java.io.File artifactFile)
protected boolean
isValidLocation(java.lang.String location)
-
Methods inherited from class org.eclipse.tycho.pomless.AbstractXMLTychoMapping
getPriority, getRequiredXMLAttributeValue, getXMLAttributeValue, initModel
-
Methods inherited from class org.eclipse.tycho.pomless.AbstractTychoMapping
accept, findParent, getBuildProperties, getFlavour, getPomVersion, getPrimaryArtifactCharset, getReader, getRealArtifactFile, getWriter, locatePom, locatePomReference, read, read, read
-
-
-
-
Field Detail
-
CATEGORY_XML
private static final java.lang.String CATEGORY_XML
- See Also:
- Constant Field Values
-
PRODUCT_EXTENSION
private static final java.lang.String PRODUCT_EXTENSION
- See Also:
- Constant Field Values
-
PACKAGING
public static final java.lang.String PACKAGING
- See Also:
- Constant Field Values
-
UPDATE_SITE_SUFFIX
private static final java.lang.String UPDATE_SITE_SUFFIX
- See Also:
- Constant Field Values
-
-
Method Detail
-
getPackaging
protected java.lang.String getPackaging()
- Specified by:
getPackaging
in classAbstractTychoMapping
-
initModelFromXML
protected void initModelFromXML(org.apache.maven.model.Model model, org.w3c.dom.Element xml, java.io.File artifactFile) throws org.apache.maven.model.io.ModelParseException, java.io.IOException
- Specified by:
initModelFromXML
in classAbstractXMLTychoMapping
- Throws:
org.apache.maven.model.io.ModelParseException
java.io.IOException
-
initFromCategory
private void initFromCategory(org.apache.maven.model.Model model, org.w3c.dom.Element xml, java.io.File categoryXml)
-
initFromProdcut
private void initFromProdcut(org.apache.maven.model.Model model, org.w3c.dom.Element xml) throws org.apache.maven.model.io.ModelParseException
- Throws:
org.apache.maven.model.io.ModelParseException
-
isValidLocation
protected boolean isValidLocation(java.lang.String location)
- Specified by:
isValidLocation
in classAbstractTychoMapping
-
getPrimaryArtifact
protected java.io.File getPrimaryArtifact(java.io.File projectRoot)
- Specified by:
getPrimaryArtifact
in classAbstractTychoMapping
-
-