views:

107

answers:

2

I need to change the default Eclipse WTP "Web Resources" dynamic folder. Currently it points to WebContent, and I need to point to src\main\webapp.

Thanks

A: 

I found the next solution: Under .settings folder in your proyect's folder, there is a file named "org.eclipse.wst.common.component", inside it change the line <wb-resource deploy-path="/" source-path="/WebContent"/> with <wb-resource deploy-path="/" source-path="/src/main/webapp"/>.

That's all!

CHiRo79
I realize that you can add as many entries with deploy-path="/" as you want to indicate the whole web content folder.
CHiRo79
A: 

Or you may even do a simple rename of WebContent directory. Eclipse will update the above mention settings files

sangeeth
But, what if you want to use a existing directory like src/main/webapp?
CHiRo79