This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
An API to allow us to programmatically generate projects of types registered in the IDE should be provided. ie., I should be able to create J2SE, EJB, Web etc., projects programmatically. Use case: Modules like UML need to generate code after the user has completed modelling. In this case uml module needs to create a project of a given type programmatically. Once a project is created, it can generate source files into its sources directory. Such API should be provided atleast for the most commonly used projects j2se, ejb, web, ear. The API org.netbeans.spi.project.support.ant.ProjectGenerator creates only the very basic structure without completely intializing project.properties / project.xml files and without creating the basic folders ('src, 'test', 'web-inf', empty DD files etc.,) needed by that project type.
Please file separate RFEs for each project type you need, as they all have idiosyncratic methods of creating new projects with various parameters. For IZ categories please see http://projects.netbeans.org/#iz I don't know if official APIs would be provided but it may be feasible to provide "friend" APIs. I think the ide/welcome module already uses such interfaces using a private contract.
For now I have filed an RFE on the J2SE project type. I believe instead of filing an RFE on each project type, there should be a requirement that all modules providing a project type support this requirement.
I think you're the first to request it - not sure.
In that case should this be kept open so that it is considered for the next release.
As I said, file RFEs against particular project types; this issue is closed.