public class ArchetypeWizards extends Object
Modifier and Type | Field and Description |
---|---|
static String |
TEMPLATE_FOLDER
Customary location of Maven project templates.
|
Modifier and Type | Method and Description |
---|---|
static org.netbeans.modules.maven.model.ModelOperation<org.netbeans.modules.maven.model.pom.POMModel> |
addDependencyOperation(ProjectInfo info,
String type) |
static WizardDescriptor.Panel<WizardDescriptor> |
basicWizardPanel(org.netbeans.validation.api.ui.ValidationGroup vg,
boolean isFinish,
Archetype archetype) |
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)
Deprecated.
use the variant with template title name
|
static WizardDescriptor.InstantiatingIterator<?> |
definedArchetype(String groupId,
String artifactId,
String version,
String repository,
String title)
Wizard iterator using a predetermined archetype.
|
static WizardDescriptor.InstantiatingIterator<?> |
definedArchetype(String groupId,
String artifactId,
String version,
String repository,
String title,
Map<String,String> defaultProps) |
static void |
logUsage(String groupId,
String artifactId,
String version)
Log new project usage.
|
static Set<FileObject> |
openProjects(File dirF,
File mainProjectDir)
Opens newly created Maven projects.
|
public static final String TEMPLATE_FOLDER
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 void logUsage(String groupId, String artifactId, String version)
public static org.netbeans.modules.maven.model.ModelOperation<org.netbeans.modules.maven.model.pom.POMModel> addDependencyOperation(ProjectInfo info, String type)
public static WizardDescriptor.Panel<WizardDescriptor> basicWizardPanel(org.netbeans.validation.api.ui.ValidationGroup vg, boolean isFinish, @NullAllowed Archetype archetype)
@Deprecated public static WizardDescriptor.InstantiatingIterator<?> definedArchetype(String groupId, String artifactId, String version, @NullAllowed String repository)
TemplateRegistration
,
ArchetypeWizards.TEMPLATE_FOLDER
public static WizardDescriptor.InstantiatingIterator<?> definedArchetype(String groupId, String artifactId, String version, @NullAllowed String repository, String title)
TemplateRegistration
,
ArchetypeWizards.TEMPLATE_FOLDER
public static WizardDescriptor.InstantiatingIterator<?> definedArchetype(String groupId, String artifactId, String version, @NullAllowed String repository, String title, Map<String,String> defaultProps)