Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (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 23:40 Go to next message
Eclipse UserFriend
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] Tue, 19 February 2008 00:45 Go to previous messageGo to next message
Eclipse UserFriend
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] Tue, 19 February 2008 01:13 Go to previous message
Eclipse UserFriend
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: Thu Apr 25 20:13:08 GMT 2024

Powered by FUDForum. Page generated in 0.02891 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top