|Re: API-only way to create dynamic web project using facets [message #186423 is a reply to message #186294]
||Wed, 17 January 2007 13:26
Originally posted by: kosta.bea.com|
To create a blank faceted project, you can use one of the
Once the project is created you will need to set fixed facets (those
facets that the user cannot deselect (WTP sets jst.java and jst.web for
the Dynamic Web Project as fixed) and set the runtime. You can do this
using setFixedProjectFacets() and addTargetedRuntime() methods of
The next step is to install facets. You can do that using the modify
method of IFacetedProject or the convenience method installProjectFacet.
Now your project is created and configured.
To export ear archives, take a look at
class. You can use it to create an IDataModel object that is used to
parameterize the export operation and then use getDefaultOperation()
method on IDataModel to get an executable operation that will create the
This should be enough to get you started.
Powered by FUDForum
. Page generated in 0.01917 seconds