WTP Question [message #152345] |
Wed, 14 December 2005 15:21  |
Eclipse User |
|
|
|
Hello all.
Maybe this is a silly question but I cannot figure out where, in the IDE
menus and dialogs, it is possible to change the information that is
stored in the .wtmodules of a Dynamic Web Project. In particular, the
context-root property of the module.
Moreover, in the .wtpmodules file there are also several wb-resource
tags with deploy-path/source-path attributes which can be useful when
you want to maintain a non-standard structure of your project and deploy
the files in the right places. Again, I haven't found any place in the
IDE where this information could be modified.
Any hint?
Thank you,
Fabio
|
|
|
Re: WTP Question [message #152368 is a reply to message #152345] |
Wed, 14 December 2005 17:52   |
Eclipse User |
|
|
|
As far as I know the place to modify them is in the .wtpmodules file itself. I
a haven't seen any UI to manage that info, and don't think it exists. I have,
however modified that file without incident.
Apparently in the 1.0 versions of WTP the .wtpmodules file has been replaced by
other config files in the .settings folder. I don't know the format of these
new files or where any of that info exists, but would not recommend spending too
much time getting to understand the .wtpmodules file as it will soon disappear.
Fabio Mancinelli wrote:
> Hello all.
>
> Maybe this is a silly question but I cannot figure out where, in the IDE
> menus and dialogs, it is possible to change the information that is
> stored in the .wtmodules of a Dynamic Web Project. In particular, the
> context-root property of the module.
>
> Moreover, in the .wtpmodules file there are also several wb-resource
> tags with deploy-path/source-path attributes which can be useful when
> you want to maintain a non-standard structure of your project and deploy
> the files in the right places. Again, I haven't found any place in the
> IDE where this information could be modified.
>
> Any hint?
>
> Thank you,
> Fabio
|
|
|
|
|
|
|
|
|
|
|
Re: WTP Question [message #152562 is a reply to message #152554] |
Thu, 15 December 2005 14:52  |
Eclipse User |
|
|
|
Jonathan Barnes wrote:
> From what I am hearing the .deployables dir has been moved into the
> $WORKSPACE/.metadata folder somewhere in the 1.0* releases and I don't
> know if the same steps will work, but I don't see why they would not.
To clarify, it has not been moved, there is no longer an equivalent
"publish staging area" between the workspace and the runtime. The
publih now takes items directly from the workspace and emits them within
the runtime.
What is in the .metadata directory is a localized copy of a runtime
directory hierachy tomcat can work out of. There is also a tick box
option to work out of the distribution path you setup when creating the
tomcat runtime.
Using the .deployables directory was only ever implementation detail,
did any documentation say it was there to allow you to build on top of
it ? Or did you just stumble upon it and start making use of it ?
So as warning in your future choices whatever you may find in the
..metadata directory you really should accept that at anytime it is
subject to change without notice.
> I know this is kind of a crap process to have to follow, but how often
> does one need to change their context root or project structure.
They've done a grand job please dont forget the version is not even at
1.0 yet.
Being able to configure the context path for testing sounds a very valid
feature to have, but if there was never a UI to do it, then how were you
using anything but the default value ? I'm pretty sure manually editing
Eclipse configuration files invalidates the warranty :)
So if you were never able to do it in the first place (except through an
unsupported mechanism) its difficult to complain it doesn't work.
Please be real.
Darryl
|
|
|
Powered by
FUDForum. Page generated in 0.06560 seconds