org.apache.maven.archetype.old
Class DefaultOldArchetype
java.lang.Object
org.codehaus.plexus.logging.AbstractLogEnabled
org.apache.maven.archetype.old.DefaultOldArchetype
- All Implemented Interfaces:
- OldArchetype, org.codehaus.plexus.logging.LogEnabled
public class DefaultOldArchetype
- extends org.codehaus.plexus.logging.AbstractLogEnabled
- implements OldArchetype
- Version:
- $Id: DefaultOldArchetype.java 1162541 2011-08-28 15:48:08Z hboutemy $
- Author:
- Jason van Zyl
- Plexus component
Method Summary |
void |
createArchetype(ArchetypeGenerationRequest request,
org.apache.maven.artifact.repository.ArtifactRepository archetypeRepository)
Download an archetype then create a project from it. |
void |
createArchetype(ArchetypeGenerationRequest request,
File archetypeFile)
Create a project from an archetype file. |
protected void |
createProjectDirectoryStructure(String outputDirectory)
|
protected void |
processResources(String outputDirectory,
Context context,
ArchetypeDescriptor descriptor,
String packageName)
|
protected void |
processSiteResources(String outputDirectory,
Context context,
ArchetypeDescriptor descriptor,
String packageName)
|
protected void |
processSources(String outputDirectory,
Context context,
ArchetypeDescriptor descriptor,
String packageName,
String sourceDirectory)
|
protected void |
processTemplate(String outputDirectory,
Context context,
String template,
TemplateDescriptor descriptor,
boolean packageInFileName,
String packageName,
String sourceDirectory)
|
protected void |
processTestResources(String outputDirectory,
Context context,
ArchetypeDescriptor descriptor,
String packageName)
|
protected void |
processTestSources(String outputDirectory,
Context context,
ArchetypeDescriptor descriptor,
String packageName,
String testSourceDirectory)
|
Methods inherited from class org.codehaus.plexus.logging.AbstractLogEnabled |
enableLogging, getLogger, setupLogger, setupLogger, setupLogger |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultOldArchetype
public DefaultOldArchetype()
createArchetype
public void createArchetype(ArchetypeGenerationRequest request,
org.apache.maven.artifact.repository.ArtifactRepository archetypeRepository)
throws UnknownArchetype,
ArchetypeNotFoundException,
ArchetypeDescriptorException,
ArchetypeTemplateProcessingException
- Description copied from interface:
OldArchetype
- Download an archetype then create a project from it.
- Specified by:
createArchetype
in interface OldArchetype
- Throws:
UnknownArchetype
ArchetypeNotFoundException
ArchetypeDescriptorException
ArchetypeTemplateProcessingException
createArchetype
public void createArchetype(ArchetypeGenerationRequest request,
File archetypeFile)
throws ArchetypeDescriptorException,
ArchetypeTemplateProcessingException
- Description copied from interface:
OldArchetype
- Create a project from an archetype file.
- Specified by:
createArchetype
in interface OldArchetype
- Throws:
ArchetypeDescriptorException
ArchetypeTemplateProcessingException
processSources
protected void processSources(String outputDirectory,
Context context,
ArchetypeDescriptor descriptor,
String packageName,
String sourceDirectory)
throws ArchetypeTemplateProcessingException
- Throws:
ArchetypeTemplateProcessingException
processTestSources
protected void processTestSources(String outputDirectory,
Context context,
ArchetypeDescriptor descriptor,
String packageName,
String testSourceDirectory)
throws ArchetypeTemplateProcessingException
- Throws:
ArchetypeTemplateProcessingException
processResources
protected void processResources(String outputDirectory,
Context context,
ArchetypeDescriptor descriptor,
String packageName)
throws ArchetypeTemplateProcessingException
- Throws:
ArchetypeTemplateProcessingException
processTestResources
protected void processTestResources(String outputDirectory,
Context context,
ArchetypeDescriptor descriptor,
String packageName)
throws ArchetypeTemplateProcessingException
- Throws:
ArchetypeTemplateProcessingException
processSiteResources
protected void processSiteResources(String outputDirectory,
Context context,
ArchetypeDescriptor descriptor,
String packageName)
throws ArchetypeTemplateProcessingException
- Throws:
ArchetypeTemplateProcessingException
processTemplate
protected void processTemplate(String outputDirectory,
Context context,
String template,
TemplateDescriptor descriptor,
boolean packageInFileName,
String packageName,
String sourceDirectory)
throws ArchetypeTemplateProcessingException
- Throws:
ArchetypeTemplateProcessingException
createProjectDirectoryStructure
protected void createProjectDirectoryStructure(String outputDirectory)
Copyright © 2007-2011 The Apache Software Foundation. All Rights Reserved.