WSAD: Are there any application launch events for "Run on Server"? [message #47883] |
Mon, 03 March 2003 14:23 |
Eclipse User |
|
|
|
Originally posted by: no.spam.please
Hi all,
This is a question for the WSAD tooling people.
We have a small Eclipse add-in that works under both WSW and WSAD.
We have registered a launch listener via a call to
DebugPlugin.getDefault().getLaunchManager().addLaunchListene r(this), because
our add-in needs to get a notification whenever a user application is
launched. We need the name of the project, so that we can determine the
project's directory.
In WSW 2.0.x this works just fine; launchAdded(launch) gets called when it
should, and we can get to the project name via a call to
launch.getLaunchConfiguration().getAttribute(
"org.eclipse.jdt.launching.PROJECT_ATTR" );.
However, when we are running under WSAD 5.0 and create a web application,
things do not work so well. If we create an example web application (like
the JSPandServletExample), right-click on the project and choose "Run on
Server", we also get a call to launchAdded - but that is from the local
server that gets started automatically, and not from the project that we
launched.
What I really would like to get is a corresponding launchAdded event when my
application was loaded onto the server, but I don't get anything like that.
The only event is when the server itself starts.
Does anyone know if there is a way for a plug-in in WSAD to do what I've
described here, or are we trying to accomplish the impossible?
Configuration: Eclipse WSW 2.0.1 and WSAD 5.0 running on WinXP Pro.
Thanks in advance,
/Fredrik Abrahamson
|
|
|
Powered by
FUDForum. Page generated in 0.05579 seconds