Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » Merge resources into web archive
Merge resources into web archive [message #165614] Sun, 02 April 2006 18:11 Go to next message
Eclipse User
Originally posted by: mathias.drop-webtools.taschenorakel.de

I my web content folder is "src/web" and I have additional resources in
"src/resources" and "build/web" I want to/have to place in the generated
war file. How do I instruct WTP to package those additional resources?

For the stuff in "src/resources" you could argue, that I should just move
them to "src/web/obscure-path". But what to do with the automatically
generated content found in "build/web".

If there is no way to do that, I'd already be happy, if someone would tell
me, how to change the web content folder: In that case I'd just create an
Ant builder dropping all my stuff into "build/web"...

Thanks for your help,
Mathias
Re: Merge resources into web archive [message #165686 is a reply to message #165614] Mon, 03 April 2006 08:09 Go to previous messageGo to next message
Eclipse User
Originally posted by: mathias.drop-webtools.taschenorakel.de

Answering myself (to help others googling for this problem):
There is no GUI for this feature, but you can do it by hand:

1) Close your web project.
2) Make a copy of ".settings/.component" found in your project's folder.
3) Open ".settings/.component" with an external editor and add new
<wb-resource/> elements. Take the exisiting elements as example. Feel free
to modify some, if you want to move your web content folder.
4) Save ".settings/.component", open your web project again and hope that
there is no ".metadata" I do not know about.
Re: Merge resources into web archive [message #165908 is a reply to message #165686] Wed, 05 April 2006 00:16 Go to previous message
David Williams is currently offline David Williams
Messages: 696
Registered: July 2009
Senior Member
On Mon, 03 Apr 2006 04:09:12 -0400, Mathias Hasselmann <mathias@drop-webtools.taschenorakel.de> wrote:

> Answering myself (to help others googling for this problem):
> There is no GUI for this feature, but you can do it by hand:
>
> 1) Close your web project.
> 2) Make a copy of ".settings/.component" found in your project's folder.
> 3) Open ".settings/.component" with an external editor and add new
> <wb-resource/> elements. Take the exisiting elements as example. Feel free
> to modify some, if you want to move your web content folder.
> 4) Save ".settings/.component", open your web project again and hope that
> there is no ".metadata" I do not know about.
>
>

Careful ... modifying system/metadata "by hand" is always prone to breaking from release to
release and might cause problems "migrating" your projects when used in a new release.
I think someone is adding support for multiple source folders in 1.5, but not positive where
that stands. If others dont' respond to you, a well specified feature request would be in order.
Thanks.
Previous Topic:Java 5 generics
Next Topic:Web content as a source folder
Goto Forum:
  


Current Time: Wed Oct 01 04:14:41 GMT 2014

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

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