You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by lo...@apache.org on 2017/02/16 08:50:35 UTC
svn commit: r1783183 -
/myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/config/TobagoConfigParser.java
Author: lofwyr
Date: Thu Feb 16 08:50:35 2017
New Revision: 1783183
URL: http://svn.apache.org/viewvc?rev=1783183&view=rev
Log:
TOBAGO-1700: Re-Add the version of Tobago to the resources URL to avoid caching when updating Tobago
* checkstyle
Modified:
myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/config/TobagoConfigParser.java
Modified: myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/config/TobagoConfigParser.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/config/TobagoConfigParser.java?rev=1783183&r1=1783182&r2=1783183&view=diff
==============================================================================
--- myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/config/TobagoConfigParser.java (original)
+++ myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/config/TobagoConfigParser.java Thu Feb 16 08:50:35 2017
@@ -86,8 +86,6 @@ public class TobagoConfigParser extends
private static final int EXTENSION = -612557761;
private static final int TYPE = 3575610;
- private String VERSION;
-
private TobagoConfigFragment tobagoConfig;
private RendererConfig currentRenderer;
private ThemeImpl currentTheme;
@@ -100,10 +98,11 @@ public class TobagoConfigParser extends
private String type;
private Stack<String> stack;
+ private String version;
public TobagoConfigParser() {
- VERSION = Package.getPackage("org.apache.myfaces.tobago.internal.config").getImplementationVersion();
- LOG.info("Tobago version: " + VERSION);
+ version = Package.getPackage("org.apache.myfaces.tobago.internal.config").getImplementationVersion();
+ LOG.debug("Tobago version: {}", version);
}
public TobagoConfigFragment parse(final URL url)
@@ -202,7 +201,7 @@ public class TobagoConfigParser extends
case SCRIPT:
final ThemeScript script = new ThemeScript();
- final String scriptName = attributes.getValue("name").replace("/_version/", '/' + VERSION + '/');
+ final String scriptName = attributes.getValue("name").replace("/_version/", '/' + version + '/');
script.setName(scriptName);
if (production) {
currentTheme.getProductionResources().addScript(script, exclude);
@@ -213,7 +212,7 @@ public class TobagoConfigParser extends
case STYLE:
final ThemeStyle style = new ThemeStyle();
- final String styleName = attributes.getValue("name").replace("/_version/", '/' + VERSION + '/');
+ final String styleName = attributes.getValue("name").replace("/_version/", '/' + version + '/');
style.setName(styleName);
if (production) {
currentTheme.getProductionResources().addStyle(style, exclude);