简体   繁体   中英

Publishing of JS files on tomcat in eclipse

I want my javascript files to publish automatically when I change them. The problem I am facing is when I keep the Publishing settings to "Never publish automatically", eclipse does not publish anything (which looks to be expected) . But when I keep the settings to "Automatically publish when resource changes", it publishes js files and restarts the server as soon as I change a java file to make the java changes effective. I end up waiting for 2-3 mins of server startup time for my project. In such a scenario both settings are appearing to be not useful to me.

Is there any setting by which I can avoid the java changes to get effective till the server is restarted but the JS changes start appearing without a restart ?

Yes, keep the publish resources option and disable "Modules auto reload by default" from the "Server Options" section in the same view (bottom).

在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM