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.

Bug 58133 - Need API to create projects programatically
Summary: Need API to create projects programatically
Status: CLOSED INVALID
Alias: None
Product: projects
Classification: Unclassified
Component: Generic Infrastructure (show other bugs)
Version: 4.x
Hardware: All All
: P2 blocker (vote)
Assignee: Jesse Glick
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-04-21 00:26 UTC by Praveen Savur
Modified: 2005-04-22 17:40 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Praveen Savur 2005-04-21 00:26:54 UTC
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.
Comment 1 Jesse Glick 2005-04-21 18:53:11 UTC
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.
Comment 2 Praveen Savur 2005-04-22 01:38:26 UTC
 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.

 

Comment 3 Jesse Glick 2005-04-22 02:13:00 UTC
I think you're the first to request it - not sure.
Comment 4 Praveen Savur 2005-04-22 02:23:37 UTC
 In that case should this be kept open so that it is considered for the next
release.

Comment 5 Jesse Glick 2005-04-22 17:40:29 UTC
As I said, file RFEs against particular project types; this issue is closed.