Skip to main content



      Home
Home » Language IDEs » ServerTools (WTP) » Setting up a project with strange structure
Setting up a project with strange structure [message #94713] Mon, 25 April 2005 09:31 Go to next message
Eclipse UserFriend
Hi,

I have an existing project developed using some rather exotic tools, which
I would like to move to WTP.
The problem is that at the moment I do not know how to do this without
changing the whole project structure (which I would rather not like to do,
as we're using CVS and I am quite new to the project ;)).
So, the strange structure is the following:

src
'- applications
'- webapp1
'- WEB-INF
'- jsp
'- webapp2 (similar to above)
'- webapp3 (similar to above)
'- java
'- config

What are the alternatives of creating WTP projects to reflect that
structure well?
My preferred one would be something like - one .project file, on the same
level as 'src' directory, containing all 3 webapps, but I guess it is
probably impossible?

Best regards,
Michal
Re: Setting up a project with strange structure [message #94743 is a reply to message #94713] Mon, 25 April 2005 10:19 Go to previous message
Eclipse UserFriend
Michal Plechawski wrote:

Michal,

There is no wizardry to do this, but you can get pretty close to it
using the flexible project support. You will need to manually edit
..wtpmodules in you project.

wtpmodules you can tell how the resources will be assembled into a final
deployable (assembled under the .deployable )

<?xml version="1.0" encoding="UTF-8"?>
<project-modules id="moduleCoreId">
<wb-module deploy-name="web1">
<module-type module-type-id="jst.web">
<version>2.4</version>
<property name="context-root" value="web1"/>
</module-type>
<wb-resource
source-path="/SimpleWebProject/src/applications/web1/JavaSource "
deploy-path="/WEB-INF/classes"/>
<wb-resource
source-path="/SimpleWebProject/src/applications/web1/WebContent "
deploy-path="/"/>
</wb-module>
<wb-module deploy-name="web2">
<module-type module-type-id="jst.web">
<version>2.4</version>
<property name="context-root" value="web2"/>
</module-type>
<wb-resource
source-path="/SimpleWebProject/src/applications/web2/JavaSource "
deploy-path="/WEB-INF/classes"/>
<wb-resource
source-path="/SimpleWebProject/src/applications/web2/WebContent "
deploy-path="/"/>
</wb-module>
</project-modules>



> Hi,
>
> I have an existing project developed using some rather exotic tools,
> which I would like to move to WTP.
> The problem is that at the moment I do not know how to do this without
> changing the whole project structure (which I would rather not like to
> do, as we're using CVS and I am quite new to the project ;)).
> So, the strange structure is the following:
>
> src
> '- applications
> '- webapp1
> '- WEB-INF
> '- jsp
> '- webapp2 (similar to above)
> '- webapp3 (similar to above) '- java
> '- config
>
> What are the alternatives of creating WTP projects to reflect that
> structure well?
> My preferred one would be something like - one .project file, on the
> same level as 'src' directory, containing all 3 webapps, but I guess it
> is probably impossible?
>
> Best regards,
> Michal
>
Previous Topic:Problems using Tomcat 5.5 under Ubuntu
Next Topic:Tomcat realm and Catalina conf
Goto Forum:
  


Current Time: Thu May 08 04:12:27 EDT 2025

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

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

Back to the top