Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » Eclipse + Tomcat : where to store large external resources ?
Eclipse + Tomcat : where to store large external resources ? [message #727199] Tue, 20 September 2011 11:32 Go to next message
Luís de Sousa is currently offline Luís de Sousa
Messages: 126
Registered: July 2009
Senior Member
Hello everyone,

I'm using Eclipse with Tomcat 7, with the former taking control of the later. I have this particular web project that uses some large JS libraries; so far I had stored them inside the "WebContent" so that they are available at dubug time.

Today I added the project to a SVN repository and it's quite heavy with those libraries included. I tried to move them outside the project to a directory under the "wtpwebapps" at Tomcat. This way the libraries can't be accessed (I tried "../lib" and "http:localhost:8080/lib").

Is there a way to store resources outside the project's folders so that they are accessible at debug/runtime from Eclipse?

Thank you and my apologies if this ignorance,

Luís
(no subject) [message #727228 is a reply to message #727199] Tue, 20 September 2011 12:30 Go to previous messageGo to next message
Larry Isaacs is currently offline Larry Isaacs
Messages: 1299
Registered: July 2009
Senior Member
On 9/20/2011 11:32 AM, Luis wrote:
> Hello everyone,
>
> I'm using Eclipse with Tomcat 7, with the former taking control of the
> later. I have this particular web project that uses some large JS
> libraries; so far I had stored them inside the "WebContent" so that they
> are available at dubug time.
>
> Today I added the project to a SVN repository and it's quite heavy with
> those libraries included. I tried to move them outside the project to a
> directory under the "wtpwebapps" at Tomcat. This way the libraries can't
> be accessed (I tried "../lib" and "http:localhost:8080/lib").
>
> Is there a way to store resources outside the project's folders so that
> they are accessible at debug/runtime from Eclipse?
>
> Thank you and my apologies if this ignorance,
>
> Luís

If keeping them out of SVN is sufficient and the JS library is under a
subfolder of WebContent, then I believe you can tell SVN to ignore that
subfolder so the JS library isn't tracked by SVN. Is there more than
this issue you are trying to solve?

Cheers,
Larry
Re: (no subject) [message #727393 is a reply to message #727228] Wed, 21 September 2011 03:28 Go to previous messageGo to next message
Luís de Sousa is currently offline Luís de Sousa
Messages: 126
Registered: July 2009
Senior Member
Larry Isaacs wrote on Tue, 20 September 2011 12:30
On 9/20/2011 11:32
If keeping them out of SVN is sufficient and the JS library is under a
subfolder of WebContent, then I believe you can tell SVN to ignore that
subfolder so the JS library isn't tracked by SVN. Is there more than
this issue you are trying to solve?


That could facilitate things, if I knew how Smile a question for the Subclipse forum.

Anyway, these libraries will be required in other projects, if I could store them in a single place accessible to all that would be perfect.

Thanks,

Luís
Re: (no subject) [message #727416 is a reply to message #727393] Wed, 21 September 2011 05:00 Go to previous messageGo to next message
Luís de Sousa is currently offline Luís de Sousa
Messages: 126
Registered: July 2009
Senior Member
Ok I managed to tell Subclipse to ignore the libraries (it needed some delete/recreate/delete/recreate back and forth).

Together these libraries amount to over 130 Mb, really nice if I can have them outside the project.

Thanks,

Luís
Re: Eclipse + Tomcat : where to store large external resources ? [message #727540 is a reply to message #727416] Wed, 21 September 2011 09:47 Go to previous messageGo to next message
Larry Isaacs is currently offline Larry Isaacs
Messages: 1299
Registered: July 2009
Senior Member
On 9/21/2011 5:00 AM, Luis wrote:
> Ok I managed to tell Subclipse to ignore the libraries (it needed some
> delete/recreate/delete/recreate back and forth).
>
> Together these libraries amount to over 130 Mb, really nice if I can
> have them outside the project.
>
> Thanks,
>
> Luís

Provided the JS libraries live in subfolder(s) of the WebContent folder
you have the option of linking the "subfolder" in Eclipse to an absolute
or variable based location in your file system. Multiple projects can
link to the same location to share the content. When creating the
subfolder, click the "Advanced >>" button to see where you specify the
alternate location for contents of that subfolder.

Cheers,
Larry
Re: Eclipse + Tomcat : where to store large external resources ? [message #727543 is a reply to message #727416] Wed, 21 September 2011 09:47 Go to previous messageGo to next message
Larry Isaacs is currently offline Larry Isaacs
Messages: 1299
Registered: July 2009
Senior Member
On 9/21/2011 5:00 AM, Luis wrote:
> Ok I managed to tell Subclipse to ignore the libraries (it needed some
> delete/recreate/delete/recreate back and forth).
>
> Together these libraries amount to over 130 Mb, really nice if I can
> have them outside the project.
>
> Thanks,
>
> Luís

Provided the JS libraries live in subfolder(s) of the WebContent folder
you have the option of linking the "subfolder" in Eclipse to an absolute
or variable based location in your file system. Multiple projects can
link to the same location to share the content. When creating the
subfolder, click the "Advanced >>" button to see where you specify the
alternate location for contents of that subfolder.

Cheers,
Larry
Re: Eclipse + Tomcat : where to store large external resources ? [message #727955 is a reply to message #727543] Thu, 22 September 2011 05:35 Go to previous message
Luís de Sousa is currently offline Luís de Sousa
Messages: 126
Registered: July 2009
Senior Member
That does it, thank you very much Larry.

Luís
Previous Topic:How to get method names in JS File
Next Topic:StructuredTextEditor not showing Validation markers in RCP
Goto Forum:
  


Current Time: Tue Jul 29 06:49:02 EDT 2014

Powered by FUDForum. Page generated in 0.02165 seconds