Package org.apache.maven.archetype.old
Class DefaultOldArchetype
java.lang.Object
org.apache.maven.archetype.old.DefaultOldArchetype
- All Implemented Interfaces:
OldArchetype
- Version:
- $Id$
- Author:
- Jason van Zyl
-
Field Summary
Fields inherited from interface org.apache.maven.archetype.old.OldArchetype
ARCHETYPE_DESCRIPTOR, ARCHETYPE_OLD_DESCRIPTOR, ARCHETYPE_POM, ARCHETYPE_RESOURCES, ROLE
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultOldArchetype
(org.codehaus.plexus.velocity.VelocityComponent velocity, ArchetypeArtifactManager archetypeArtifactManager) -
Method Summary
Modifier and TypeMethodDescriptionvoid
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, org.apache.velocity.context.Context context, ArchetypeDescriptor descriptor, String packageName) protected void
processSiteResources
(String outputDirectory, org.apache.velocity.context.Context context, ArchetypeDescriptor descriptor, String packageName) protected void
processSources
(String outputDirectory, org.apache.velocity.context.Context context, ArchetypeDescriptor descriptor, String packageName, String sourceDirectory) protected void
processTemplate
(String outputDirectory, org.apache.velocity.context.Context context, String template, TemplateDescriptor descriptor, boolean packageInFileName, String packageName, String sourceDirectory) protected void
processTestResources
(String outputDirectory, org.apache.velocity.context.Context context, ArchetypeDescriptor descriptor, String packageName) protected void
processTestSources
(String outputDirectory, org.apache.velocity.context.Context context, ArchetypeDescriptor descriptor, String packageName, String testSourceDirectory)
-
Constructor Details
-
DefaultOldArchetype
@Inject public DefaultOldArchetype(org.codehaus.plexus.velocity.VelocityComponent velocity, ArchetypeArtifactManager archetypeArtifactManager)
-
-
Method Details
-
createArchetype
public void createArchetype(ArchetypeGenerationRequest request) throws UnknownArchetype, ArchetypeDescriptorException, ArchetypeTemplateProcessingException, InvalidPackaging Description copied from interface:OldArchetype
Download an archetype then create a project from it.- Specified by:
createArchetype
in interfaceOldArchetype
- Throws:
UnknownArchetype
ArchetypeDescriptorException
ArchetypeTemplateProcessingException
InvalidPackaging
-
createArchetype
public void createArchetype(ArchetypeGenerationRequest request, File archetypeFile) throws ArchetypeDescriptorException, ArchetypeTemplateProcessingException, InvalidPackaging Description copied from interface:OldArchetype
Create a project from an archetype file.- Specified by:
createArchetype
in interfaceOldArchetype
- Throws:
ArchetypeDescriptorException
ArchetypeTemplateProcessingException
InvalidPackaging
-
processSources
protected void processSources(String outputDirectory, org.apache.velocity.context.Context context, ArchetypeDescriptor descriptor, String packageName, String sourceDirectory) throws ArchetypeTemplateProcessingException, IOException -
processTestSources
protected void processTestSources(String outputDirectory, org.apache.velocity.context.Context context, ArchetypeDescriptor descriptor, String packageName, String testSourceDirectory) throws ArchetypeTemplateProcessingException, IOException -
processResources
protected void processResources(String outputDirectory, org.apache.velocity.context.Context context, ArchetypeDescriptor descriptor, String packageName) throws IOException, ArchetypeTemplateProcessingException -
processTestResources
protected void processTestResources(String outputDirectory, org.apache.velocity.context.Context context, ArchetypeDescriptor descriptor, String packageName) throws IOException, ArchetypeTemplateProcessingException -
processSiteResources
protected void processSiteResources(String outputDirectory, org.apache.velocity.context.Context context, ArchetypeDescriptor descriptor, String packageName) throws IOException, ArchetypeTemplateProcessingException -
processTemplate
protected void processTemplate(String outputDirectory, org.apache.velocity.context.Context context, String template, TemplateDescriptor descriptor, boolean packageInFileName, String packageName, String sourceDirectory) throws IOException, ArchetypeTemplateProcessingException -
createProjectDirectoryStructure
-