incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject svn commit: r1372287 - in /sling/trunk/contrib/scripting/jst: pom.xml src/main/java/org/apache/sling/scripting/jst/JstScriptEngineFactory.java
Date Mon, 13 Aug 2012 07:19:40 GMT
Author: cziegeler
Date: Mon Aug 13 07:19:40 2012
New Revision: 1372287

URL: http://svn.apache.org/viewvc?rev=1372287&view=rev
Log:
SLING-2545 : Scripting jst is using wrong import package directives

Modified:
    sling/trunk/contrib/scripting/jst/pom.xml
    sling/trunk/contrib/scripting/jst/src/main/java/org/apache/sling/scripting/jst/JstScriptEngineFactory.java

Modified: sling/trunk/contrib/scripting/jst/pom.xml
URL: http://svn.apache.org/viewvc/sling/trunk/contrib/scripting/jst/pom.xml?rev=1372287&r1=1372286&r2=1372287&view=diff
==============================================================================
--- sling/trunk/contrib/scripting/jst/pom.xml (original)
+++ sling/trunk/contrib/scripting/jst/pom.xml Mon Aug 13 07:19:40 2012
@@ -58,6 +58,8 @@
                 <extensions>true</extensions>
                 <configuration>
                     <instructions>
+                        <!-- Override default - we don't export anything -->
+                        <Export-Package></Export-Package>
                         <!--
                           TODO the xerces and dom dependencies should
                           come from separate bundles
@@ -73,10 +75,11 @@
                         
                         <Import-Package>
                             org.apache.bsf.*;
+                            org.apache.xml.serialize;
                             sun.misc; resolution:=optional,
-                            javax.xml.*
+                            javax.jcr.*;version="[1.0,3.0)",
+                            javax.xml.*, *
                         </Import-Package>
-                        <DynamicImport-Package>*</DynamicImport-Package>
                         
                         <ScriptEngine-Name>${pom.name}</ScriptEngine-Name>
                         <ScriptEngine-Version>${pom.version}</ScriptEngine-Version>

Modified: sling/trunk/contrib/scripting/jst/src/main/java/org/apache/sling/scripting/jst/JstScriptEngineFactory.java
URL: http://svn.apache.org/viewvc/sling/trunk/contrib/scripting/jst/src/main/java/org/apache/sling/scripting/jst/JstScriptEngineFactory.java?rev=1372287&r1=1372286&r2=1372287&view=diff
==============================================================================
--- sling/trunk/contrib/scripting/jst/src/main/java/org/apache/sling/scripting/jst/JstScriptEngineFactory.java
(original)
+++ sling/trunk/contrib/scripting/jst/src/main/java/org/apache/sling/scripting/jst/JstScriptEngineFactory.java
Mon Aug 13 07:19:40 2012
@@ -34,13 +34,13 @@ public class JstScriptEngineFactory exte
         setMimeTypes(JST_MIME_TYPE);
         setNames(SHORT_NAME);
     }
-    
+
     public ScriptEngine getScriptEngine() {
         return new JstScriptEngine(this);
     }
 
     public String getEngineName() {
-        return "JST script engine (sling JavaScript Templates)";
+        return "Apache Sling JST script engine (Sling JavaScript Templates)";
     }
 
     public String getEngineVersion() {



Mime
View raw message