deltaspike-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tandrasc...@apache.org
Subject git commit: DELTASPIKE-569 Improve DeltaSpikeResourceHandler handling
Date Tue, 15 Apr 2014 18:40:12 GMT
Repository: deltaspike
Updated Branches:
  refs/heads/master ae9314971 -> 484f94ceb


DELTASPIKE-569 Improve DeltaSpikeResourceHandler handling

Project: http://git-wip-us.apache.org/repos/asf/deltaspike/repo
Commit: http://git-wip-us.apache.org/repos/asf/deltaspike/commit/484f94ce
Tree: http://git-wip-us.apache.org/repos/asf/deltaspike/tree/484f94ce
Diff: http://git-wip-us.apache.org/repos/asf/deltaspike/diff/484f94ce

Branch: refs/heads/master
Commit: 484f94ceb3c96bc1daebbb5e63725dfd0ec7e636
Parents: ae93149
Author: tandraschko <tandraschko@apache.org>
Authored: Tue Apr 15 20:38:53 2014 +0200
Committer: tandraschko <tandraschko@apache.org>
Committed: Tue Apr 15 20:38:53 2014 +0200

----------------------------------------------------------------------
 .../jsf/impl/resource/DeltaSpikeResourceHandler.java           | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/deltaspike/blob/484f94ce/deltaspike/modules/jsf/impl/src/main/java/org/apache/deltaspike/jsf/impl/resource/DeltaSpikeResourceHandler.java
----------------------------------------------------------------------
diff --git a/deltaspike/modules/jsf/impl/src/main/java/org/apache/deltaspike/jsf/impl/resource/DeltaSpikeResourceHandler.java
b/deltaspike/modules/jsf/impl/src/main/java/org/apache/deltaspike/jsf/impl/resource/DeltaSpikeResourceHandler.java
index c6ce502..556bae7 100644
--- a/deltaspike/modules/jsf/impl/src/main/java/org/apache/deltaspike/jsf/impl/resource/DeltaSpikeResourceHandler.java
+++ b/deltaspike/modules/jsf/impl/src/main/java/org/apache/deltaspike/jsf/impl/resource/DeltaSpikeResourceHandler.java
@@ -18,11 +18,11 @@
  */
 package org.apache.deltaspike.jsf.impl.resource;
 
-import javax.faces.application.ProjectStage;
 import javax.faces.application.Resource;
 import javax.faces.application.ResourceHandler;
 import javax.faces.application.ResourceHandlerWrapper;
-import javax.faces.context.FacesContext;
+import org.apache.deltaspike.core.api.projectstage.ProjectStage;
+import org.apache.deltaspike.core.util.ProjectStageProducer;
 
 /**
  * {@link ResourceHandlerWrapper} to deliver uncompressed resources in {@link ProjectStage#Development}.
@@ -49,7 +49,7 @@ public class DeltaSpikeResourceHandler extends ResourceHandlerWrapper
         if (resource != null
                 && libraryName != null
                 && libraryName.equals(LIBRARY)
-                && FacesContext.getCurrentInstance().isProjectStage(ProjectStage.Development))
+                && ProjectStageProducer.getInstance().getProjectStage() == ProjectStage.Development)
         {
 
             resource = wrapped.createResource(resourceName, LIBRARY_UNCOMPRESSED);


Mime
View raw message