Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

hotswap agent not working for jsp, css, js etc in a java web project

Tags:

java

hotswap

I tried to setup hotswapagent with eclipse and tomcat from http://www.hotswapagent.org. It worked fine for .java files but I can't make it to work for other resources. I even tried to create a hotswap-agent.properties file as mentioned in http://www.hotswapagent.org/quick-start/configuration but it did not work. My hotswap-agent.properties file looks like below

watchResources=${basedir}/src/main/resources
extraWebappContext=${basedir}/src/main/webapp/html

I even tried target folder instead of src but nothing works. Please help.

like image 763
Ravi Kumar Gupta Avatar asked Mar 02 '26 11:03

Ravi Kumar Gupta


1 Answers

Try with adding the following line to hotswap-agent.properties:

webappDir=c:/yourPath/src/main/webapp

Also follow these:

Configuration for Netbeans

like image 126
coder247 Avatar answered Mar 04 '26 02:03

coder247