Skip to main content



      Home
Home » Language IDEs » ServerTools (WTP) » Best way to include 3rd party jarfiles in WEB-INF/lib
Best way to include 3rd party jarfiles in WEB-INF/lib [message #151201] Fri, 09 December 2005 10:49 Go to next message
Eclipse UserFriend
Originally posted by: wul99.yahoo.com

Folks,

I want to programmatically add some 3rd party jarfiles to a dynamic web
project WEB-INF/lib, which need to be deployed to target server. What is
the best way to do this?

I know it would be better not to physically copy jarfiles to WEB-INF/lib.
Is there a better way to link jarfiles to the lib directory? Ideally
creating a library and link this library to the lib directory would be
better solution?

Also I want to copy a template.jsp to WebContent directory. Looks like
direct copy would be the only choice?


Thanks

William
Re: Best way to include 3rd party jarfiles in WEB-INF/lib [message #151212 is a reply to message #151201] Fri, 09 December 2005 12:40 Go to previous messageGo to next message
Eclipse UserFriend
I have done something similar using a nature, I add a Nature to my Dynamic
Web Projects and it adds the files (jars and jsps) I need to the appropriate
location, Still done by copying, but its programatic. If I could link like
you were talking about that would benefit me also, so I will watch this
thread. The only drawback is it the jars are constantly changing I have to
update my plugin often.

There is an example nature wizard in plugin.xml extensions page. Hope this
helps

Regards
Brian Jakubik


"William" <wul99@yahoo.com> wrote in message
news:afd723ab604ace6261651d18ac5cb230$1@www.eclipse.org...
> Folks,
>
> I want to programmatically add some 3rd party jarfiles to a dynamic web
> project WEB-INF/lib, which need to be deployed to target server. What is
> the best way to do this?
> I know it would be better not to physically copy jarfiles to WEB-INF/lib.
> Is there a better way to link jarfiles to the lib directory? Ideally
> creating a library and link this library to the lib directory would be
> better solution?
>
> Also I want to copy a template.jsp to WebContent directory. Looks like
> direct copy would be the only choice?
>
>
> Thanks
>
> William
>
Re: Best way to include 3rd party jarfiles in WEB-INF/lib [message #151227 is a reply to message #151201] Fri, 09 December 2005 15:27 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: daniel.rohe.stud.tu-ilmenau.de

William schrieb:
> Folks,
>
> I want to programmatically add some 3rd party jarfiles to a dynamic web
> project WEB-INF/lib, which need to be deployed to target server. What is
> the best way to do this?
> I know it would be better not to physically copy jarfiles to
> WEB-INF/lib. Is there a better way to link jarfiles to the lib
> directory? Ideally creating a library and link this library to the lib
> directory would be better solution?
>
> Also I want to copy a template.jsp to WebContent directory. Looks like
> direct copy would be the only choice?
>
>
> Thanks
>
> William
>

Use the new WTP project facet to add a classpath initializer during
install and remove the classpath initializer during remove. I think the
wtp.jsf project has this.

Kind regards,
Daniel
Re: Best way to include 3rd party jarfiles in WEB-INF/lib [message #151250 is a reply to message #151227] Fri, 09 December 2005 17:02 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: wul99.yahoo.com

Thanks Dan!

Is there a simple example for doing that? The way that JSFLibraryRegistry
does is complicated.

Thanks

William


Daniel Rohe wrote:

> William schrieb:
>> Folks,
>>
>> I want to programmatically add some 3rd party jarfiles to a dynamic web
>> project WEB-INF/lib, which need to be deployed to target server. What is
>> the best way to do this?
>> I know it would be better not to physically copy jarfiles to
>> WEB-INF/lib. Is there a better way to link jarfiles to the lib
>> directory? Ideally creating a library and link this library to the lib
>> directory would be better solution?
>>
>> Also I want to copy a template.jsp to WebContent directory. Looks like
>> direct copy would be the only choice?
>>
>>
>> Thanks
>>
>> William
>>

> Use the new WTP project facet to add a classpath initializer during
> install and remove the classpath initializer during remove. I think the
> wtp.jsf project has this.

> Kind regards,
> Daniel
Re: Best way to include 3rd party jarfiles in WEB-INF/lib [message #151257 is a reply to message #151250] Fri, 09 December 2005 17:25 Go to previous message
Eclipse UserFriend
Originally posted by: daniel.rohe.stud.tu-ilmenau.de

William schrieb:
> Thanks Dan!
>
> Is there a simple example for doing that? The way that
> JSFLibraryRegistry does is complicated.
>
> Thanks
>
> William
>

Currently not so far I know. The project facet I'm working on copies the
libraries from an install location into the WEB-INF/lib directory during
facet installation (CVS module de.strutsbox.core on
http://sourceforge.net/projects/strutsbox).

Daniel
Previous Topic:escaping spaces in path to app server
Next Topic:New to WST
Goto Forum:
  


Current Time: Wed Jul 16 13:14:49 EDT 2025

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

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

Back to the top