Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » Facet Install Order question
Facet Install Order question [message #208793] Tue, 19 February 2008 19:05 Go to next message
Eclipse UserFriend
Originally posted by: fake.thefakers.com

Hi, I have a fairly complex facet question.

I am trying to guarantee that my facet install delegate runs after a facet
install delegate that may or may not exist in my product. (It is an optional
install).

I thought I could use the "soft dependency" option a la:
<constraint>
<and>
<requires facet="jst.web" version="[2.2"/>
<requires facet="OPTIONAL.FACET" soft="true"/>
</and>
</constraint>

The problem is that if OPTIONAL.FACET is not defined (when that piece of the
product is not installed), the facet framework ignores my entire
<constraint>.

Does anybody know how I can guarantee that my facet install runs after an
optionally existing fact?

Thanks
Re: Facet Install Order question [message #208809 is a reply to message #208793] Tue, 19 February 2008 21:34 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: kosta.bea.com

This sounds similar to a pending enhancement request.

https://bugs.eclipse.org/bugs/show_bug.cgi?id=197557

Depending on your specific needs, you may be able to craft a workaround
by using the faceted project events extension point (POST_INSTALL to be
specific). This would let you get called after any facet (including your
optional facet is installed). You can then do some setup work that you
weren't able to do if your optional facet install is called first.

http://help.eclipse.org/help33/topic/org.eclipse.wst.doc.isv /html/facets/listeners.html

Hope this helps.

- Konstantin
Re: Facet Install Order question [message #208822 is a reply to message #208809] Tue, 19 February 2008 23:04 Go to previous message
Eclipse UserFriend
Originally posted by: fake.thefakers.com

Thanks Konstantin

I will look into using the faceted projects events. I added myself as a cc
to the bug, I think the ability to specify constraints that may or may not
exist would be a huge improvement.

Dan
"Konstantin Komissarchik" <kosta@bea.com> wrote in message
news:fpfi0c$al4$1@build.eclipse.org...
> This sounds similar to a pending enhancement request.
>
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=197557
>
> Depending on your specific needs, you may be able to craft a workaround by
> using the faceted project events extension point (POST_INSTALL to be
> specific). This would let you get called after any facet (including your
> optional facet is installed). You can then do some setup work that you
> weren't able to do if your optional facet install is called first.
>
> http://help.eclipse.org/help33/topic/org.eclipse.wst.doc.isv /html/facets/listeners.html
>
> Hope this helps.
>
> - Konstantin
Previous Topic:How to create a web project programmatically while another is being created?
Next Topic:Re: xml editor content assist
Goto Forum:
  


Current Time: Thu Mar 28 14:16:55 GMT 2024

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

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

Back to the top