incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bdelacre...@apache.org
Subject svn commit: r644699 - /incubator/sling/trunk/scripting/jst/src/main/java/org/apache/sling/scripting/jst/JstScriptEngine.java
Date Fri, 04 Apr 2008 12:51:51 GMT
Author: bdelacretaz
Date: Fri Apr  4 05:51:41 2008
New Revision: 644699

URL: http://svn.apache.org/viewvc?rev=644699&view=rev
Log:
sling.js path adapted to path change of rev 643830

Modified:
    incubator/sling/trunk/scripting/jst/src/main/java/org/apache/sling/scripting/jst/JstScriptEngine.java

Modified: incubator/sling/trunk/scripting/jst/src/main/java/org/apache/sling/scripting/jst/JstScriptEngine.java
URL: http://svn.apache.org/viewvc/incubator/sling/trunk/scripting/jst/src/main/java/org/apache/sling/scripting/jst/JstScriptEngine.java?rev=644699&r1=644698&r2=644699&view=diff
==============================================================================
--- incubator/sling/trunk/scripting/jst/src/main/java/org/apache/sling/scripting/jst/JstScriptEngine.java
(original)
+++ incubator/sling/trunk/scripting/jst/src/main/java/org/apache/sling/scripting/jst/JstScriptEngine.java
Fri Apr  4 05:51:41 2008
@@ -56,12 +56,14 @@
     private final List<String> libraryScripts = new LinkedList<String>();
     private final DefaultHtmlRenderer htmlRenderer;
     private final ScriptFilteredCopy copier = new ScriptFilteredCopy();
+    
+    // TODO should be configurable or synced with the actual location
+    public final static String SLING_JS_PATH = "/bundles/sling/sling.js";
 
     JstScriptEngine(ScriptEngineFactory scriptEngineFactory) {
         super(scriptEngineFactory);
 
-        // TODO hardcoded for now...
-        libraryScripts.add("/sling/sling.js");
+        libraryScripts.add(SLING_JS_PATH);
         htmlRenderer = new DefaultHtmlRenderer();
     }
 



Mime
View raw message