Hi
I would like to deploy a webapp through the MyEclipse deployment tool, to be able to use the very nice hot-deploy and hot-swap debugging.
It works great if I create a test project and put all java sources under a src directory and the struts-, taglib definitions-, web-xml, etc under the webroot/WEB-INF directory. And also put the lib files in a lib directory under WEB-INF.
The thing is in our real projects we have another structure when placing our files. That because many project use the same ‘core’ files, but they might have different web.xml, library files, resource and property files. We have this in a CVS structure and it looks something like this:
Project/
Project/src1/ (java source)
Project/src2/ (java source)
Project/lib/ (jar files)
Project/etc/ (web.xml, struts files)
Project/taglibs/ (differnt tld files)
Project/resource/ (.property files)
Project/web/ (jsp, xsl, js, html, images, etc)
Now, we use ANT build scripts to move these folders and files to a correct deployment structure:
web/
web/WEB-INF/ +(files from etc/ and taglibs/)
web/WEB-INF/lib/
web/WEB-INF/classes/ (compiled versions of src1/ and src2/)
The resource files are copied into their correct place under the classes/.
So, my question is. How can I get this to work?
How can I define how the WebRoot (deployement directory) should be set up using my CVS folder structure? I would like to be able to still use the CVS functionality, and I don’t want to manually copy or move any files.
Is it possible to link the files and folders somehow, so that they will be part of the deployement even if they are not present in the WebRoot directory?
BR
Marcus