Setting up a project with strange structure [message #94713] |
Mon, 25 April 2005 09:31  |
Eclipse User |
|
|
|
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  |
Eclipse User |
|
|
|
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
>
|
|
|
Powered by
FUDForum. Page generated in 0.07629 seconds