incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mdue...@apache.org
Subject svn commit: r1055828 - /sling/trunk/contrib/scripting/scala/script/src/main/scala/org/apache/sling/scripting/scala/AbstractSettingsProvider.scala
Date Thu, 06 Jan 2011 11:04:42 GMT
Author: mduerig
Date: Thu Jan  6 11:04:41 2011
New Revision: 1055828

URL: http://svn.apache.org/viewvc?rev=1055828&view=rev
Log:
SLING-1919: Scala Scripting: class from Java class path not found

Modified:
    sling/trunk/contrib/scripting/scala/script/src/main/scala/org/apache/sling/scripting/scala/AbstractSettingsProvider.scala

Modified: sling/trunk/contrib/scripting/scala/script/src/main/scala/org/apache/sling/scripting/scala/AbstractSettingsProvider.scala
URL: http://svn.apache.org/viewvc/sling/trunk/contrib/scripting/scala/script/src/main/scala/org/apache/sling/scripting/scala/AbstractSettingsProvider.scala?rev=1055828&r1=1055827&r2=1055828&view=diff
==============================================================================
--- sling/trunk/contrib/scripting/scala/script/src/main/scala/org/apache/sling/scripting/scala/AbstractSettingsProvider.scala
(original)
+++ sling/trunk/contrib/scripting/scala/script/src/main/scala/org/apache/sling/scripting/scala/AbstractSettingsProvider.scala
Thu Jan  6 11:04:41 2011
@@ -27,7 +27,12 @@ import scala.tools.nsc.reporters.Reporte
  * Abstract base implementation of a {@link SettingsProvider}. 
  */  
 abstract class AbstractSettingsProvider extends SettingsProvider {
-  protected var settings: Settings = new Settings
+  protected var settings: Settings = {
+    val settings = new Settings
+    settings.usejavacp.value = true
+    settings
+  }
+  
   protected var reporter: Reporter = createReporter(settings)
   protected var classpathX: Array[AbstractFile] = Array.empty
 



Mime
View raw message