…ching server when it should not matter
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. 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. Added JUnit test.
…r with unknown type already exist
…r with unknown type already exist Preventing NPE when server runtime is null (ie, unknown)
From now, the script is inserted at the end of the 'head' element (which is fine) and if there's no such element, it is inserted at the end of the 'body' element.
Using actual hostname configured in the LiveReload server to build the URL that will be used by the browser. Works in both "local files" and "deployed modules" cases ;-) Added JUnit test to check that it's not 'localhost' that is used.
Problem was that the ServerListener would send too many notifications when a module would be published. Once the browser received the first notification, it would refresh the page, which would close the current websocket. Further messages for the same module publication would be sent by the plugin, but one of them would fail to be delivered because the connection would be closed. Modified the JUnit test and HTTP Preview Server to reproduce the multiple events and assert that only one notification is sent. Adjusted some log messages as well.
User need to install both LiveReload AND asciidoc.js browser extensions, because since the returned content is raw asciidoc (html renderding is performed on the client side), then the LiveReload tooling cannot inject the livereload.js script as it would with traditionnal HTML content.
…urned with special characters Fixed the way the returned entity is written into the response outputstream added a junit test to verify that the 'Content-Length' response header matches the actual response body (in byte)
Using Charset configured in Eclipse when reading local files. Fallback to UTF-8 if charset is unknown Fixed the "content-length" response header value Also, the returned content is encoded with the charset provided in the request's "accept" header.
…jetty server on eclipse restart Stopping all servers while the JBossLiveReloadCore bundle is shut down. This works for both Workbench shutdown and restart, as opposed to IWorkbenchListener which is only called when Workbench is shutdown, bot restarted
Updated message as suggested by Michelle in her JIRA. Also fixed JBIDE-15070: Mistyped link in LiveReload server editor Renamed the button 'OK/Cancel' to 'Yes/No' as Michelle suggested in the JIRA description
…and original page sent from server Proxy server was not forwarding the full URI, it used to remove the QueryParams, which would cause the seam app on AS 7.1 to return 404 Added a test to verify that, using a dedicated Servlet in the Preview Server. This servlet will return a 400 error if the incoming request did not contain query params.
Remove the launcher from the Debug LaunchManager, thanks to Rob Stryker.
… if it failed to start Removing check on Free Port b/c it doesn't work on MacOSX but does on Linux, and in a particular test case, we need to attempt to start 2 servers on the same port
… if it failed to start Properly setting server state back to 'stopped' if underyling Jetty server could not start (eg: address already in use) Added a JUnit test FTW ;-)