public class ArchetypeWizards extends Object
Modifier and Type | Method and Description |
---|---|
static void |
createFromArchetype(File projDir,
ProjectInfo vi,
Archetype arch,
Map<String,String> additionalProperties,
boolean updateLastUsedProjectDir)
Run a single archetype.
|
static WizardDescriptor.InstantiatingIterator<?> |
definedArchetype(String groupId,
String artifactId,
String version,
String repository,
String title)
Wizard iterator using a predetermined archetype.
|
static Set<FileObject> |
openProjects(File dirF,
File mainProjectDir)
Opens newly created Maven projects.
|
public static void createFromArchetype(File projDir, ProjectInfo vi, Archetype arch, @NullAllowed Map<String,String> additionalProperties, boolean updateLastUsedProjectDir) throws IOException
projDir
- the new project directory (must be normalized first!) (note: parent dir is actually passed to plugin, i.e. assumes that project name matches this basedir)vi
- metadata for new projectarch
- the archetype to processadditionalProperties
- any additional archetype properties, or nullupdateLastUsedProjectDir
- true to update last-used project directory for next wizard runIOException
public static Set<FileObject> openProjects(File dirF, File mainProjectDir) throws IOException
dirF
- the top-level dir to check inmainProjectDir
- the dir containing the main project, or nullIOException
public static WizardDescriptor.InstantiatingIterator<?> definedArchetype(String groupId, String artifactId, String version, @NullAllowed String repository, String title)
groupId
- artifactId
- version
- repository
- title
- TemplateRegistration
,
#TEMPLATE_FOLDER