Snjezana Peco wrote:
I have noticed that the New Seam wizard is being executed in the
following order:
- Seam Install delegate creates Seam facet, WAR project ...
- Seam Post Install delegate registers (and publishes) the project on
the server and registers a database profile
- SeamProjectCreator.execute() configures a test project (EJB and EAR
projects for EAR deployment)
It could happen that the project is registered (and published) before
it is configured completely.
Hm... yes it could :(
Is there particular issue already in JIRA?
My proposal is the following:
- moving SeamProjectCreator.execute() to Seam Install delegate
SeamProjectCreator
is used be New Seam Wizard Project.
If user just add Seam facet to existed project then we must not to use
SeamProjectCreator.
We can check the wizard that installs Seam facet but I'm not sure this
is the best solution...
- registering and publishing a project should be done in a job within
Seam Post Install delegate or within Seam Install delegate . This job
would wait for the project to be built. After that, it would register
the project on the server.
Sounds better for me. Is there any chance that registering will be
before eclipse starts building project created by SeamProjectCreator?
Snjeza