Is there any way to avoid tomcat app reload on make?

I am trying to run Maven web project using tomcat integration. Everything
works fine but when I make my project tomcat always reloads my web
application. I think it happens because IDEA rewrites context file every
time.
App reload of course is necessary when any of application classes has
changed and were compiled and copied to web faced exploded directory but
when I only change my HTML, JavaScript (we use 100% client AJAX UI so good
deal of client side javascript) I really do not want to my app reload every
time I do build to synch changes to my static resources (css, html,
javascript ...)

I wonder if it is possible to optimize context file update to only happen if
any of WEB-INF/classes /* files need to be updated in exploded directory?
This way tomcat will only reload the ap when necessary!


6 comments
Comment actions Permalink

You can switch "Deploy web applications to server after compilation" (Settings -> Compiler) to "Never" or "Ask".

I am trying to run Maven web project using tomcat integration. Everything
works fine but when I make my project tomcat always reloads my web
application. I think it happens because IDEA rewrites context file every
time.
App reload of course is necessary when any of application classes has
changed and were compiled and copied to web faced exploded directory but
when I only change my HTML, JavaScript (we use 100% client AJAX UI so good
deal of client side javascript) I really do not want to my app reload every
time I do build to synch changes to my static resources (css, html,
javascript ...)

I wonder if it is possible to optimize context file update to only happen if
any of WEB-INF/classes /* files need to be updated in exploded directory?
This way tomcat will only reload the ap when necessary!



--
Nikolay Chashnikov
Software Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

0
Comment actions Permalink

IMHO it'd be better to have this option per run configuration


0
Comment actions Permalink

Nikolay,

I would like it to deploy! The whole point is in synchronizing exploded app
with my working directories. But I would like it done in smarter way -
updating tomcat app context file only if any of WEB-INF/classes/* was out of
date to avoid unecessary tomcat application reloads

Thank you,
Alex


"Nikolay Chashnikov (JetBrains)" <Nikolay.Chashnikov@jetbrains.com> wrote in
message news:gnb1nn$lh8$1@is.intellij.net...

You can switch "Deploy web applications to server after compilation"
(Settings -> Compiler) to "Never" or "Ask".

>
>> I am trying to run Maven web project using tomcat integration. Everything
>> works fine but when I make my project tomcat always reloads my web
>> application. I think it happens because IDEA rewrites context file every
>> time.
>> App reload of course is necessary when any of application classes has
>> changed and were compiled and copied to web faced exploded directory but
>> when I only change my HTML, JavaScript (we use 100% client AJAX UI so
>> good deal of client side javascript) I really do not want to my app
>> reload every time I do build to synch changes to my static resources
>> (css, html, javascript ...)
>>
>> I wonder if it is possible to optimize context file update to only happen
>> if any of WEB-INF/classes /* files need to be updated in exploded
>> directory? This way tomcat will only reload the ap when necessary!
>>
>>
>
>

--
Nikolay Chashnikov
Software Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"



0

Please sign in to leave a comment.