You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rave.apache.org by ma...@apache.org on 2012/08/27 16:33:01 UTC

svn commit: r1377695 - in /rave/sandbox/content-services: rave-jcr-console/pom.xml rave-web-hmvc/src/main/java/org/apache/rave/portal/web/hmvc/resource/FreeMarkerTemplateLoader.java

Author: marijan
Date: Mon Aug 27 14:33:00 2012
New Revision: 1377695

URL: http://svn.apache.org/viewvc?rev=1377695&view=rev
Log:
- remove hippo version

Added:
    rave/sandbox/content-services/rave-web-hmvc/src/main/java/org/apache/rave/portal/web/hmvc/resource/FreeMarkerTemplateLoader.java   (with props)
Modified:
    rave/sandbox/content-services/rave-jcr-console/pom.xml

Modified: rave/sandbox/content-services/rave-jcr-console/pom.xml
URL: http://svn.apache.org/viewvc/rave/sandbox/content-services/rave-jcr-console/pom.xml?rev=1377695&r1=1377694&r2=1377695&view=diff
==============================================================================
--- rave/sandbox/content-services/rave-jcr-console/pom.xml (original)
+++ rave/sandbox/content-services/rave-jcr-console/pom.xml Mon Aug 27 14:33:00 2012
@@ -34,7 +34,6 @@
   <properties>
     <hippo-jcr-console.version>1.01.00-SNAPSHOT</hippo-jcr-console.version>
     <hippo-jcr-console.springframework.version>3.0.5.RELEASE</hippo-jcr-console.springframework.version>
-    <hippo-cms-plugins.version>2.23.01-SNAPSHOT</hippo-cms-plugins.version>
   </properties>
 
   <!-- temporarily add hippo snapshot repository until hippo-jcr-console is released -->

Added: rave/sandbox/content-services/rave-web-hmvc/src/main/java/org/apache/rave/portal/web/hmvc/resource/FreeMarkerTemplateLoader.java
URL: http://svn.apache.org/viewvc/rave/sandbox/content-services/rave-web-hmvc/src/main/java/org/apache/rave/portal/web/hmvc/resource/FreeMarkerTemplateLoader.java?rev=1377695&view=auto
==============================================================================
--- rave/sandbox/content-services/rave-web-hmvc/src/main/java/org/apache/rave/portal/web/hmvc/resource/FreeMarkerTemplateLoader.java (added)
+++ rave/sandbox/content-services/rave-web-hmvc/src/main/java/org/apache/rave/portal/web/hmvc/resource/FreeMarkerTemplateLoader.java Mon Aug 27 14:33:00 2012
@@ -0,0 +1,66 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.rave.portal.web.hmvc.resource;
+
+import java.io.IOException;
+import java.io.Reader;
+
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+import freemarker.cache.TemplateLoader;
+
+/**
+ * @version "$Id$"
+ */
+public class FreeMarkerTemplateLoader implements TemplateLoader {
+
+    private static Logger log = LoggerFactory.getLogger(FreeMarkerTemplateLoader.class);
+
+    private JcrRepositoryResourceLoader loader;
+
+    @Override
+    public Object findTemplateSource(String name) throws IOException {
+        return null;
+    }
+
+    @Override
+    public long getLastModified(Object templateSource) {
+        return 1L;
+    }
+
+    @Override
+    public Reader getReader(Object templateSource, String encoding) throws IOException {
+        return null;
+    }
+
+    @Override
+    public void closeTemplateSource(Object templateSource) throws IOException {
+
+    }
+
+    public void setLoader(JcrRepositoryResourceLoader loader) {
+        this.loader = loader;
+    }
+}
+
+
+
+

Propchange: rave/sandbox/content-services/rave-web-hmvc/src/main/java/org/apache/rave/portal/web/hmvc/resource/FreeMarkerTemplateLoader.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: rave/sandbox/content-services/rave-web-hmvc/src/main/java/org/apache/rave/portal/web/hmvc/resource/FreeMarkerTemplateLoader.java
------------------------------------------------------------------------------
    svn:keywords = Id