You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by we...@apache.org on 2019/11/29 15:51:43 UTC
[myfaces-tobago] branch tobago-2.x updated: TOBAGO-2016 - Tobago2:
allow svg resources
This is an automated email from the ASF dual-hosted git repository.
weber pushed a commit to branch tobago-2.x
in repository https://gitbox.apache.org/repos/asf/myfaces-tobago.git
The following commit(s) were added to refs/heads/tobago-2.x by this push:
new a4b88d5 TOBAGO-2016 - Tobago2: allow svg resources
a4b88d5 is described below
commit a4b88d5db0afd44f1fe4fb317da92e243b086687
Author: Volker Weber <v....@inexso.de>
AuthorDate: Fri Nov 29 16:51:37 2019 +0100
TOBAGO-2016 - Tobago2: allow svg resources
---
.../org/apache/myfaces/tobago/internal/context/ResourceManagerImpl.java | 2 ++
1 file changed, 2 insertions(+)
diff --git a/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/context/ResourceManagerImpl.java b/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/context/ResourceManagerImpl.java
index 7174e52..279c509 100644
--- a/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/context/ResourceManagerImpl.java
+++ b/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/context/ResourceManagerImpl.java
@@ -60,6 +60,7 @@ public class ResourceManagerImpl implements ResourceManager {
public static final String[] EXT_JSP= new String[]{".jsp"};
public static final String[] EXT_JSPX= new String[]{".jspx"};
public static final String[] EXT_XHTML= new String[]{".xhtml"};
+ public static final String[] EXT_SVG= new String[]{".svg"};
private boolean production;
@@ -97,6 +98,7 @@ public class ResourceManagerImpl implements ResourceManager {
extensionCache.put(".jsp", EXT_JSP);
extensionCache.put(".jspx", EXT_JSPX);
extensionCache.put(".xhtml", EXT_XHTML);
+ extensionCache.put(".svg", EXT_SVG);
}
public void add(final String resourceKey) {