Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » Is it possible to install server through extension or API?
Is it possible to install server through extension or API? [message #221378] Mon, 15 September 2008 13:32 Go to next message
Eclipse UserFriend
Originally posted by: imeikas.gmail.com

Hi,

I'm trying to bundle a tomcat with my custom eclipse build, but I can't
find a way how I can preregister that server, so that the end user
wouldn't have to configure the Installed Server Runtime environments
themselves.

Is there an extension point or an API I could call to tell the WTP where
the tomcat is installed?

Regards,
Ivar Meikas
Re: Is it possible to install server through extension or API? [message #221386 is a reply to message #221378] Mon, 15 September 2008 14:22 Go to previous messageGo to next message
Larry Isaacs is currently offline Larry IsaacsFriend
Messages: 1354
Registered: July 2009
Senior Member
Ivar Meikas wrote:
> Hi,
>
> I'm trying to bundle a tomcat with my custom eclipse build, but I can't
> find a way how I can preregister that server, so that the end user
> wouldn't have to configure the Installed Server Runtime environments
> themselves.
>
> Is there an extension point or an API I could call to tell the WTP where
> the tomcat is installed?
>
> Regards,
> Ivar Meikas
>

It should be possible to do programmatically what the user would have to
do manually. Some startup initialization could detect if its running in
a new workspace and if so, create the runtime and server you want. The
WTP automated JUnit tests that run for the Tomcat plug-in
programmatically create a runtime and server. As a starting point, you
can examine this code:

http://dev.eclipse.org/viewcvs/index.cgi/servertools/tests/o rg.eclipse.jst.server.tomcat.core.tests/src/org/eclipse/jst/ server/tomcat/core/tests/AbstractTomcatServerTestCase.java?r evision=1.16&root=WebTools_Project&view=markup

Cheers,
Larry
Re: Is it possible to install server through extension or API? [message #221394 is a reply to message #221386] Mon, 15 September 2008 14:29 Go to previous message
Eclipse UserFriend
Originally posted by: imeikas.gmail.com

Larry Isaacs wrote:

> It should be possible to do programmatically what the user would have to
> do manually. Some startup initialization could detect if its running in
> a new workspace and if so, create the runtime and server you want. The
> WTP automated JUnit tests that run for the Tomcat plug-in
> programmatically create a runtime and server. As a starting point, you
> can examine this code:

>
http://dev.eclipse.org/viewcvs/index.cgi/servertools/tests/o rg.eclipse.jst.server.tomcat.core.tests/src/org/eclipse/jst/ server/tomcat/core/tests/AbstractTomcatServerTestCase.java?r evision=1.16&root=WebTools_Project&view=markup

Thanks,
Ivar
Previous Topic:Disable compression on the EAR?
Next Topic:Applets
Goto Forum:
  


Current Time: Tue Mar 19 07:39:22 GMT 2024

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

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

Back to the top