Extension point to get control when Run on Server invoked? [message #214537] |
Thu, 29 May 2008 19:02 |
Eclipse User |
|
|
|
Originally posted by: david_whiteman.us.ibm.com
Hi,
I would like to know if there is some sort of extension point available
by which I can have custom code invoked when the user selects "Run on
Server" on a dynamic web project. We would like to get control at that
point for projects that were built using our facets, so we can perform
special processing.
Thanks in advance,
David
|
|
|
|
|
Re: Extension point to get control when Run on Server invoked? [message #214981 is a reply to message #214976] |
Sat, 07 June 2008 01:33 |
Eclipse User |
|
|
|
Originally posted by: dcarver.starstandard.org
You'll
David Whiteman wrote:
> David Whiteman wrote:
>
> The reason I want this is that I would like to get the EPR of a web
> service that I have deployed and pass it as an argument to another
> program that will help the developer perform testing.
You might want to check out the Web Tools Server Adapter API and
Extension points. You might be able to get something from there. Also
I believe the Eclipse Web Tools book, does have a chapter about the
server adapters and extension points.
|
|
|
|
Re: Extension point to get control when Run on Server invoked? [message #214989 is a reply to message #214984] |
Sun, 08 June 2008 23:06 |
Eclipse User |
|
|
|
Originally posted by: dcarver.starstandard.org
> I'm finding the docs hard to use, and I don't have the Web Tools book,
> unfortunately. It looks like the launchableAdapters extension point
> *might* be what I'm looking for, and it appears this is part of the
> org.eclipse.wst.server.core plugin, but when I add that plugin as a
> dependency of my plugin, and try to add that extension point, it doesn't
> seem to be complete... i.e. there is no extension point schema and I
> can't add set the class attribute via the UI. I'm using the 3.4 RC2 build.
The extension point schema problem can happen when you aren't using the
SDK plugins to develop against.
|
|
|
Re: Extension point to get control when Run on Server invoked? [message #215000 is a reply to message #214989] |
Mon, 09 June 2008 15:10 |
David Whiteman Messages: 166 Registered: July 2009 |
Senior Member |
|
|
David Carver wrote:
>
>> I'm finding the docs hard to use, and I don't have the Web Tools book,
>> unfortunately. It looks like the launchableAdapters extension point
>> *might* be what I'm looking for, and it appears this is part of the
>> org.eclipse.wst.server.core plugin, but when I add that plugin as a
>> dependency of my plugin, and try to add that extension point, it
>> doesn't seem to be complete... i.e. there is no extension point schema
>> and I can't add set the class attribute via the UI. I'm using the 3.4
>> RC2 build.
>
> The extension point schema problem can happen when you aren't using the
> SDK plugins to develop against.
Thanks, David. That probably affected the extension point UI. I went
ahead and added the extension point by hand in the plugin.xml.
However, it didn't do what I thought it would do. I created a class for
the launchable adapter delegate and put a breakpoint in getLaunchable().
Then I started the PDE, created a dynamic web project, and selected
Run on Server, my breakpoint was not triggered. None of the other
extension points looked close to what I wanted to accomplish. Is it
even possible to get control when Run on Server is selected?
David
|
|
|
Re: Extension point to get control when Run on Server invoked? [message #215068 is a reply to message #215000] |
Tue, 10 June 2008 20:04 |
Eclipse User |
|
|
|
Originally posted by: dcarver.starstandard.org
> However, it didn't do what I thought it would do. I created a class for
> the launchable adapter delegate and put a breakpoint in getLaunchable().
> Then I started the PDE, created a dynamic web project, and selected Run
> on Server, my breakpoint was not triggered. None of the other extension
> points looked close to what I wanted to accomplish. Is it even possible
> to get control when Run on Server is selected?
Not sure. You may have to create your own custom server by extending an
existing one in order to get the control you want.
Dave
|
|
|
Powered by
FUDForum. Page generated in 0.04605 seconds