@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 ArchetypeDataSourceArchetypeDataSourceExceptionpublic ArchetypeCatalog getArchetypeCatalog(Properties properties) throws ArchetypeDataSourceException
getArchetypeCatalog in interface ArchetypeDataSourceArchetypeDataSourceExceptionprotected void writeLocalCatalog(ArchetypeCatalog catalog, File catalogFile) throws ArchetypeDataSourceException
ArchetypeDataSourceExceptionprotected ArchetypeCatalog readCatalog(Reader reader) throws ArchetypeDataSourceException
ArchetypeDataSourceExceptionCopyright © 2007-2017 The Apache Software Foundation. All Rights Reserved.