Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-14999

LiveReload: add option for refresh delay

    XMLWordPrintable

Details

    • Hide
      Added a spinner in the Server Configuration Editor to set
      the number of seconds that the livereload server should wait after
      the application server published the resources that changed.

      There is no need to restart the server to take the new delay into account (just
      save the change)
      The delay is seen as a job in the Progress View, so the user can cancel
      the job is the delay was too long.
      Show
      Added a spinner in the Server Configuration Editor to set the number of seconds that the livereload server should wait after the application server published the resources that changed. There is no need to restart the server to take the new delay into account (just save the change) The delay is seen as a job in the Progress View, so the user can cancel the job is the delay was too long.

    Description

      LiveReload currently refreshes a page immediately as changes are deployed (at least I guess so).

      However it takes some time to WildFly container, JRebel or JSF implementation to reflect those changes. I'm getting following error:

      Warning: This page calls for XML namespace http://jsflive.at/taglib declared with prefix jl but no taglibrary exists for that namespace.
      

      That means the taglibrary configuration in JSF subsystem wasn't initialized correctly (seems like a consequence of JRebel configuration reloading):

      11:10:19,153 INFO  [stdout] (default task-46) 2013-06-25 11:10:19 JRebel: Reloading configuration
      

      I propose to add a "refresh delay" which will serve as a delay for runtime to reflect changes and which will be configurable by user considering his use case.

      For record, I have tried to use command line guard-livereload with following configuration with 2 sec. grace period and everything works fine then - changes are reflected after delayed update:

      guard 'livereload', :grace_period => 2 do
         watch(%r{.+\.(css|js|html|xhtml|json)})
      end
      

      Attachments

        Issue Links

          Activity

            People

              xcoulon@redhat.com Xavier Coulon
              lfryc Lukáš Fryč (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: