Merge resources into web archive [message #165614] |
Sun, 02 April 2006 14:11  |
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 #165908 is a reply to message #165686] |
Tue, 04 April 2006 20:16  |
Eclipse User |
|
|
|
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.
|
|
|
Powered by
FUDForum. Page generated in 0.03526 seconds