[WTP 0.7] Multiple Web sources [message #131873] |
Thu, 11 August 2005 04:40 |
Eclipse User |
|
|
|
It is curious that such a flexible IDE like Eclipse[+WTP] doesn't allow to configure multiple Web resources folders for directory structure like:
<pre>
projects_root
/modules
/module1
/src
/pages
index1.jsp
/module2
/src
/pages
index2.jsp
/WEB-INF
web.xml
</pre>
The point is that index2.jsp editor resolves tags just fine, but index1.jsp is completely unreachable.
There is a nice file created by the IDE in the root '.wtpmodules'. Obviously, it is to handle the Web Project structure. which i've manually edited just to match dir structure (there are no any evident editor for that):
<pre>
<project-modules id="moduleCoreId">
<wb-module deploy-name="myProjectName">
<module-type module-type-id="jst.web">
<version>2.3</version>
<property name="context-root" value="myProjectName"/>
<property name="java-output-path" value="/classes/"/>
</module-type>
<wb-resource source-path="/modules/module1/src" deploy-path="/WEB-INF/classes"/>
<wb-resource source-path="/modules/module2/src" deploy-path="/WEB-INF/classes"/>
<wb-resource source-path="/modules/module1/test" deploy-path="/WEB-INF/classes"/>
<wb-resource source-path="/modules/module2/test" deploy-path="/WEB-INF/classes"/>
<wb-resource source-path="/modules/module1/pages" deploy-path="/module1/"/>
<wb-resource source-path="/modules/module2/pages" deploy-path="/module2/"/>
</wb-module>
</project-modules>
</pre>
<br><br>
Dispite of evident correctness :) of the changes after rebuilding it didn't help.
<br>
Of course, one may say "change your directory structure to more conventional".
<br>
But, IMHO, my structure is natural and very convenient: it allows to treat functional modules separately (web sources, java sources and configurations).
<br><br>
Just for statistics: IDEA does allow this structure (modular projects).
<br>
Does anybody met this issue and what workarounds exist?
<br>
Or maybe there is a standard way to treat this issue?
<br><br>
Thanks, guanzo.
|
|
|
Powered by
FUDForum. Page generated in 0.26882 seconds