@Component(role=ArchetypeDataSource.class, hint="catalog") public class CatalogArchetypeDataSource extends org.codehaus.plexus.logging.AbstractLogEnabled implements ArchetypeDataSource
Modifier and Type | Field and Description |
---|---|
static String |
ARCHETYPE_CATALOG_FILENAME |
static String |
ARCHETYPE_CATALOG_PROPERTY |
static File |
DEFAULT_ARCHETYPE_CATALOG |
static File |
MAVEN_CONFIGURATION |
static File |
USER_HOME |
ROLE
Constructor and Description |
---|
CatalogArchetypeDataSource() |
Modifier and Type | Method and Description |
---|---|
ArchetypeCatalog |
getArchetypeCatalog(Properties properties) |
protected ArchetypeCatalog |
readCatalog(Reader reader) |
void |
updateCatalog(Properties properties,
Archetype archetype) |
protected void |
writeLocalCatalog(ArchetypeCatalog catalog,
File catalogFile) |
public static final String ARCHETYPE_CATALOG_PROPERTY
public static final String ARCHETYPE_CATALOG_FILENAME
public static final File USER_HOME
public static final File MAVEN_CONFIGURATION
public static final File DEFAULT_ARCHETYPE_CATALOG
public void updateCatalog(Properties properties, Archetype archetype) throws ArchetypeDataSourceException
updateCatalog
in interface ArchetypeDataSource
ArchetypeDataSourceException
public ArchetypeCatalog getArchetypeCatalog(Properties properties) throws ArchetypeDataSourceException
getArchetypeCatalog
in interface ArchetypeDataSource
ArchetypeDataSourceException
protected void writeLocalCatalog(ArchetypeCatalog catalog, File catalogFile) throws ArchetypeDataSourceException
ArchetypeDataSourceException
protected ArchetypeCatalog readCatalog(Reader reader) throws ArchetypeDataSourceException
ArchetypeDataSourceException
Copyright © 2007–2015 The Apache Software Foundation. All rights reserved.