Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » How to create a web project programmatically while another is being created?
How to create a web project programmatically while another is being created? [message #208731] Mon, 18 February 2008 18:40 Go to next message
Eclipse User
Originally posted by: david_whiteman.us.ibm.com

Hi,

I would like to have a project facet that while we are creating project
A, the facet will also create project B under the covers. Is there a
programmatic way to create a web project? I would like project B to
have the same characterstics as project A, but of course with a
different name. The reason is that we don't want to rely on or require
the user to go through the steps of creating a second project (and
typing in the same values on our custom wizard pages), when the two
projects are often desired at the same time. What's the best way to go
about this?

Thanks,
David
Re: How to create a web project programmatically while another is being created? [message #208770 is a reply to message #208731] Mon, 18 February 2008 19:45 Go to previous messageGo to next message
Eclipse User
Originally posted by: david_whiteman.us.ibm.com

David Whiteman wrote:
> Hi,
>
> I would like to have a project facet that while we are creating project
> A, the facet will also create project B under the covers. Is there a
> programmatic way to create a web project? I would like project B to
> have the same characterstics as project A, but of course with a
> different name. The reason is that we don't want to rely on or require
> the user to go through the steps of creating a second project (and
> typing in the same values on our custom wizard pages), when the two
> projects are often desired at the same time. What's the best way to go
> about this?
>
> Thanks,
> David

What I have tried so far within the execute() method of my facet install
delegate is to clone the IFacetedProjectWorkingCopy. Unfortunately that
causes an error. I also tried creating a brand new project by calling
FacetedProjectFramework.createNewProject(), and setting its name with
setProjectName(). Again, same error. Perhaps this needs to be done
using the POST_INSTALL event, since project A isn't fully done being
created yet?

David
Re: How to create a web project programmatically while another is being created? [message #208778 is a reply to message #208770] Mon, 18 February 2008 20:13 Go to previous message
Eclipse User
Originally posted by: david_whiteman.us.ibm.com

David Whiteman wrote:

> What I have tried so far within the execute() method of my facet install
> delegate is to clone the IFacetedProjectWorkingCopy. Unfortunately that
> causes an error. I also tried creating a brand new project by calling
> FacetedProjectFramework.createNewProject(), and setting its name with
> setProjectName(). Again, same error. Perhaps this needs to be done
> using the POST_INSTALL event, since project A isn't fully done being
> created yet?
>
> David

sorry about the interruption... I got past that problem... I'll post
back when I have spent more time with it
Previous Topic:JSP validation foobarred by my taglib function
Next Topic:Facet Install Order question
Goto Forum:
  


Current Time: Wed Apr 16 06:51:39 EDT 2014

Powered by FUDForum. Page generated in 0.01998 seconds