Skip to main content



      Home
Home » Language IDEs » ServerTools (WTP) » [WTP 0.7] Multiple Web sources
[WTP 0.7] Multiple Web sources [message #131873] Thu, 11 August 2005 04:40
Eclipse UserFriend
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>
&lt;project-modules id="moduleCoreId"&gt;
&lt;wb-module deploy-name="myProjectName"&gt;
&lt;module-type module-type-id="jst.web"&gt;
&lt;version&gt;2.3&lt;/version&gt;
&lt;property name="context-root" value="myProjectName"/&gt;
&lt;property name="java-output-path" value="/classes/"/&gt;
&lt;/module-type&gt;

&lt;wb-resource source-path="/modules/module1/src" deploy-path="/WEB-INF/classes"/&gt;
&lt;wb-resource source-path="/modules/module2/src" deploy-path="/WEB-INF/classes"/&gt;

&lt;wb-resource source-path="/modules/module1/test" deploy-path="/WEB-INF/classes"/&gt;
&lt;wb-resource source-path="/modules/module2/test" deploy-path="/WEB-INF/classes"/&gt;

&lt;wb-resource source-path="/modules/module1/pages" deploy-path="/module1/"/&gt;
&lt;wb-resource source-path="/modules/module2/pages" deploy-path="/module2/"/&gt;

&lt;/wb-module&gt;
&lt;/project-modules&gt;
</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.
Previous Topic:EclipseXSLT 1.0.3 released
Next Topic:Copying project libraries to WEB-INF/lib
Goto Forum:
  


Current Time: Mon Jul 14 14:43:59 EDT 2025

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

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

Back to the top