Hi,
I’m starting work on a web project originally created in IntelliJ and the structure is such that the folders
META-INF
WEB-INF
resources
start from the project’s root.
Where this project is currently deployed live, files in the resources folder are referenced from the root, like so:
http://server/myProject/fileInResourcesFolder.gif
rather than:
http://server/myProject/resources/fileInResourcesFolder.gif
In the project tree is a file from IntelliJ called myProject-webapp.iml and it has the entry
<webroots>
<root url=”file://$MODULE_DIR$/resources” relative=”/resources” />
<root url=”file://$MODULE_DIR$/WEB-INF” relative=”/WEB-INF” />
</webroots>
which I guess makes this possible, to deploy from both resources and WEB-INF to a common root on the server.
So my question is: How can I deploy from both resources and WEB-INF to a common webapp root on the server, without refactoring the project’s tree?
People will be working on this also in IntelliJ and I wouldn’t want to disturb their config by rearranging the tree. And preferably I would like to be able to use the Deploy to server feature in the IDE, rather than creating a custom Ant script or such.
Thanks for any hints,
/Björn