Background exploded webapp synchronization


For webapp projects, most of the time I run Tomcat directly on the exploded
webapp directory (server.xml points to the exploded folder).
I hardly ever use the IDEA built-in Tomcat/server/deployment functionality.

In the current setup, I'm missing the option of "continuous synchronization"
of webapp resources (html,css,jsp).

I'd like to see if this can be provided by a plug-in.

In essence, I'd like to:
1) register listeners on all web resource directories configured for all
web modules in the current project.
2) get notified of file addition/modification/deletion for resources that
are descendants of these directories
3) propagate the change to the resource in the configured exploded directory

I'd be very grateful for any pointers, especially existing plugins that touch
the relevant APIs (file change nitification and webapp support).


3 comments

You can press Make to copy all modified resources, correctly? This isn't enough?

Taras Tielkes wrote:


For webapp projects, most of the time I run Tomcat directly on the
exploded webapp directory (server.xml points to the exploded folder).
I hardly ever use the IDEA built-in Tomcat/server/deployment functionality.

In the current setup, I'm missing the option of "continuous
synchronization" of webapp resources (html,css,jsp).

I'd like to see if this can be provided by a plug-in.

In essence, I'd like to:
1) register listeners on all web resource directories configured for all
web modules in the current project.
2) get notified of file addition/modification/deletion for resources
that are descendants of these directories
3) propagate the change to the resource in the configured exploded
directory

I'd be very grateful for any pointers, especially existing plugins that
touch the relevant APIs (file change nitification and webapp support).

0

I certainly can press F9, and sometimes that works just right.

However,
1) Sometimes it insists on rebuilding all or part of the Java sources in
the module
2) Sometimes I have modified Java code, but don't want to deploy it yet
3) I think that the whole compile->alt-tab->refresh browser cycle could become
just a little bit smoother this way

You can press Make to copy all modified resources, correctly? This
isn't enough?

Taras Tielkes wrote:

>> For webapp projects, most of the time I run Tomcat directly on the
>> exploded webapp directory (server.xml points to the exploded folder).
>> I hardly ever use the IDEA built-in Tomcat/server/deployment
>> functionality.
>>
>> In the current setup, I'm missing the option of "continuous
>> synchronization" of webapp resources (html,css,jsp).
>>
>> I'd like to see if this can be provided by a plug-in.
>>
>> In essence, I'd like to:
>> 1) register listeners on all web resource directories configured for
>> all
>> web modules in the current project.
>> 2) get notified of file addition/modification/deletion for resources
>> that are descendants of these directories
>> 3) propagate the change to the resource in the configured exploded
>> directory
>> I'd be very grateful for any pointers, especially existing plugins
>> that touch the relevant APIs (file change nitification and webapp
>> support).
>>


0

There is a Settings|your module|J2EE Build|Build on frame deactivation
setting which launches J2EE build whenever you alt-tabs away from IDEA to
the e.g. browser.

--
regards,
--
Alexey Kudravtsev
Software Developer
JetBrains, Inc, http://www.jetbrains.com
"Develop with pleasure!"

"Taras Tielkes" <taras.tielkes@gmail.com> wrote in message
news:ae766d0964768c7808571fa3c66@news.intellij.net...
>I certainly can press F9, and sometimes that works just right.
>

However,
1) Sometimes it insists on rebuilding all or part of the Java sources in
the module
2) Sometimes I have modified Java code, but don't want to deploy it yet
3) I think that the whole compile->alt-tab->refresh browser cycle could
become just a little bit smoother this way

>
>
>> You can press Make to copy all modified resources, correctly? This
>> isn't enough?
>>
>> Taras Tielkes wrote:
>>
>>> For webapp projects, most of the time I run Tomcat directly on the
>>> exploded webapp directory (server.xml points to the exploded folder).
>>> I hardly ever use the IDEA built-in Tomcat/server/deployment
>>> functionality.
>>>
>>> In the current setup, I'm missing the option of "continuous
>>> synchronization" of webapp resources (html,css,jsp).
>>>
>>> I'd like to see if this can be provided by a plug-in.
>>>
>>> In essence, I'd like to:
>>> 1) register listeners on all web resource directories configured for
>>> all
>>> web modules in the current project.
>>> 2) get notified of file addition/modification/deletion for resources
>>> that are descendants of these directories
>>> 3) propagate the change to the resource in the configured exploded
>>> directory
>>> I'd be very grateful for any pointers, especially existing plugins
>>> that touch the relevant APIs (file change nitification and webapp
>>> support).
>>>
>



0

Please sign in to leave a comment.