File file = (File) wiz.getProperty( ProjectWizardKeys.WIZARD_PROP_PROJECT_DIR );
dest = FileUtil.toFileObject( FileUtil.normalizeFile( file.getParentFile() ) );
ProjectCreator gen = new ProjectCreator( dest );
Map<String, String> templateProperties = NbCollections.checkedMapByFilter( wiz.getProperties(), String.class, String.class, false );
templateProperties.put( ProjectWizardKeys.WIZARD_PROP_PORT, DefaultExecutable.get().getDefaultPort() + "" );
templateProperties.put( "project.license", panel.getLicense() );
templateProperties.put( "license", panel.getLicense() == null ? "none" : panel.getLicense() );
templateProperties.put( "author", NodePanel.getAuthor() );
templateProperties.put( "email", NodePanel.getEmail() );
templateProperties.put( "login", NodePanel.getLogin() );
String desc = templateProperties.get( ProjectWizardKeys.WIZARD_PROP_DESCRIPTION );
if (desc == null) {
templateProperties.put( ProjectWizardKeys.WIZARD_PROP_DESCRIPTION,
NbBundle.getMessage( ProjectWizardIterator.class,
"PLACEHOLDER_PROJECT_DESCRIPTION" ) ); //NOI18N
templateProperties.put( ProjectWizardKeys.WIZARD_PROP_DESCRIPTION_ESCAPED,
NbBundle.getMessage( ProjectWizardIterator.class,
"PLACEHOLDER_PROJECT_DESCRIPTION" ) ); //NOI18N
} else {
templateProperties.put( WIZARD_PROP_DESCRIPTION_ESCAPED,
desc.replace( "\n", "\\n" ).replace( "\"", "\\\"" ) ); //NOI18N
}
GeneratedProject proj = gen.createProject( h, name, template, templateProperties );
results.add( proj.projectDir );
results.addAll( proj.filesToOpen );
return results;
}