mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-10 07:25:44 +01:00
fix missing translations in livereload mode
This commit is contained in:
@@ -23,6 +23,7 @@ import java.net.URL;
|
|||||||
* @since 2.0.0
|
* @since 2.0.0
|
||||||
*/
|
*/
|
||||||
@Singleton
|
@Singleton
|
||||||
|
@Priority(WebResourceServlet.PRIORITY)
|
||||||
@WebElement(value = WebResourceServlet.PATTERN, regex = true)
|
@WebElement(value = WebResourceServlet.PATTERN, regex = true)
|
||||||
public class WebResourceServlet extends HttpServlet {
|
public class WebResourceServlet extends HttpServlet {
|
||||||
|
|
||||||
@@ -33,7 +34,10 @@ public class WebResourceServlet extends HttpServlet {
|
|||||||
* TODO remove old protocol servlets and hook. Move /hook/hg to api?
|
* TODO remove old protocol servlets and hook. Move /hook/hg to api?
|
||||||
*/
|
*/
|
||||||
@VisibleForTesting
|
@VisibleForTesting
|
||||||
static final String PATTERN = "/(?!api/|git/|hg/|svn/|hook/|repo/|locales/).*";
|
static final String PATTERN = "/(?!api/|git/|hg/|svn/|hook/|repo/).*";
|
||||||
|
|
||||||
|
// Be sure that this servlet is the last one in the servlet chain.
|
||||||
|
static final int PRIORITY = Integer.MAX_VALUE;
|
||||||
|
|
||||||
private static final Logger LOG = LoggerFactory.getLogger(WebResourceServlet.class);
|
private static final Logger LOG = LoggerFactory.getLogger(WebResourceServlet.class);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user