clerezza-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r...@apache.org
Subject svn commit: r1455568 - in /clerezza/trunk/scala-scripting: ./ script-engine/ tests/ tests/src/test/scala/org/apache/clerezza/scala/tests/
Date Tue, 12 Mar 2013 15:03:57 GMT
Author: reto
Date: Tue Mar 12 15:03:57 2013
New Revision: 1455568

URL: http://svn.apache.org/r1455568
Log:
CLEREZZA-742: fixed scala scripting test dependencies issue

Modified:
    clerezza/trunk/scala-scripting/pom.xml
    clerezza/trunk/scala-scripting/script-engine/pom.xml
    clerezza/trunk/scala-scripting/tests/pom.xml
    clerezza/trunk/scala-scripting/tests/src/test/scala/org/apache/clerezza/scala/tests/CompilerServiceTest.scala
    clerezza/trunk/scala-scripting/tests/src/test/scala/org/apache/clerezza/scala/tests/ScriptEngineFactoryTest.scala

Modified: clerezza/trunk/scala-scripting/pom.xml
URL: http://svn.apache.org/viewvc/clerezza/trunk/scala-scripting/pom.xml?rev=1455568&r1=1455567&r2=1455568&view=diff
==============================================================================
--- clerezza/trunk/scala-scripting/pom.xml (original)
+++ clerezza/trunk/scala-scripting/pom.xml Tue Mar 12 15:03:57 2013
@@ -52,6 +52,11 @@
 				<artifactId>scala-actors</artifactId>
 				<version>2.10.0</version>
 			</dependency>
+            <dependency>
+                <groupId>org.scala-lang</groupId>
+                <artifactId>scala-reflect</artifactId>
+                <version>2.10.0</version>
+            </dependency>
 			<dependency>
 				<groupId>org.apache.felix</groupId>
 				<artifactId>org.apache.felix.scr.annotations</artifactId>

Modified: clerezza/trunk/scala-scripting/script-engine/pom.xml
URL: http://svn.apache.org/viewvc/clerezza/trunk/scala-scripting/script-engine/pom.xml?rev=1455568&r1=1455567&r2=1455568&view=diff
==============================================================================
--- clerezza/trunk/scala-scripting/script-engine/pom.xml (original)
+++ clerezza/trunk/scala-scripting/script-engine/pom.xml Tue Mar 12 15:03:57 2013
@@ -73,7 +73,7 @@
 						<Service-Component>OSGI-INF/serviceComponents.xml</Service-Component>
 						<Export-Package>org.apache.clerezza.scala.scripting,org.apache.clerezza.scala.scripting.util</Export-Package>
                         <Import-Package>!com.sun.*,!javax.servlet,!javax.servlet.*,
-                            !org.fusesource.*,!org.mozilla.*,!scala.reflect.*,*
+                            !org.fusesource.*,!org.mozilla.*,!scala.reflect.*,!javax.ws.rs,!javax.ws.rs.*,*
                         </Import-Package>
                         <Private-Package>org.fusesource.*</Private-Package>
 						<DynamicImport-Package>*</DynamicImport-Package>

Modified: clerezza/trunk/scala-scripting/tests/pom.xml
URL: http://svn.apache.org/viewvc/clerezza/trunk/scala-scripting/tests/pom.xml?rev=1455568&r1=1455567&r2=1455568&view=diff
==============================================================================
--- clerezza/trunk/scala-scripting/tests/pom.xml (original)
+++ clerezza/trunk/scala-scripting/tests/pom.xml Tue Mar 12 15:03:57 2013
@@ -47,38 +47,58 @@
 			<groupId>org.ops4j.pax.exam</groupId>
 			<artifactId>pax-exam</artifactId>
 			<scope>test</scope>
-			<version>1.2.1</version>
+			<version>1.2.4</version>
 		</dependency>
 		<dependency>
 			<groupId>org.ops4j.pax.exam</groupId>
 			<artifactId>pax-exam-junit</artifactId>
 			<scope>test</scope>
-			<version>1.2.1</version>
+			<version>1.2.4</version>
 		</dependency>
 		<dependency>
 			<groupId>org.ops4j.pax.exam</groupId>
 			<artifactId>pax-exam-container-default</artifactId>
 			<scope>test</scope>
-			<version>1.2.1</version>
+			<version>1.2.4</version>
 		</dependency>
-		<dependency>
-			<groupId>org.apache.servicemix.bundles</groupId>
-			<artifactId>org.apache.servicemix.bundles.scala-library</artifactId>
-			<version>2.9.1_3</version>
-			<scope>provided</scope>
+        <dependency>
+			<groupId>org.scala-lang</groupId>
+			<artifactId>scala-compiler</artifactId>
+            <scope>provided</scope>
 		</dependency>
 		<dependency>
-			<groupId>org.apache.servicemix.bundles</groupId>
-			<artifactId>org.apache.servicemix.bundles.scala-compiler</artifactId>
-			<version>2.9.1_3</version>
-			<scope>provided</scope>
-		</dependency>
+			<groupId>org.scala-lang</groupId>
+			<artifactId>scala-library</artifactId>
+            <scope>provided</scope>
+		</dependency>
+        <dependency>
+            <groupId>org.scala-lang</groupId>
+            <artifactId>scala-actors</artifactId>
+            <scope>provided</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.scala-lang</groupId>
+            <artifactId>scala-reflect</artifactId>
+            <scope>provided</scope>
+        </dependency>
 		<dependency>
 			<groupId>org.apache.clerezza.scala</groupId>
 			<artifactId>script-engine</artifactId>
 			<scope>provided</scope>
 			<version>0.2-SNAPSHOT</version>
 		</dependency>
+        <dependency>
+		  <groupId>org.apache.clerezza.ext</groupId>
+		  <artifactId>slf4j-scala-api</artifactId>
+          <version>1.6.2-SNAPSHOT</version>
+          <scope>provided</scope>
+		</dependency>
+        <dependency>
+            <groupId>org.apache.sling</groupId>
+            <artifactId>org.apache.sling.commons.log</artifactId>
+            <version>2.1.2</version>
+            <scope>provided</scope>
+        </dependency>
 	</dependencies>
 	<build>
 		<plugins>

Modified: clerezza/trunk/scala-scripting/tests/src/test/scala/org/apache/clerezza/scala/tests/CompilerServiceTest.scala
URL: http://svn.apache.org/viewvc/clerezza/trunk/scala-scripting/tests/src/test/scala/org/apache/clerezza/scala/tests/CompilerServiceTest.scala?rev=1455568&r1=1455567&r2=1455568&view=diff
==============================================================================
--- clerezza/trunk/scala-scripting/tests/src/test/scala/org/apache/clerezza/scala/tests/CompilerServiceTest.scala
(original)
+++ clerezza/trunk/scala-scripting/tests/src/test/scala/org/apache/clerezza/scala/tests/CompilerServiceTest.scala
Tue Mar 12 15:03:57 2013
@@ -172,7 +172,7 @@ object """+objectName+""" {
 							testRunner ! (message, receivedMessage)
 						}
 					} catch {
-						case t => testRunner ! t
+						case t: Throwable => testRunner ! t
 					}
 				}
 			}
@@ -199,7 +199,7 @@ object """+objectName+""" {
 			})
 		} catch {
 			case e: PrivilegedActionException => throw e.getCause
-			case e => throw e
+			case e: Throwable => throw e
 		}
 	}
 

Modified: clerezza/trunk/scala-scripting/tests/src/test/scala/org/apache/clerezza/scala/tests/ScriptEngineFactoryTest.scala
URL: http://svn.apache.org/viewvc/clerezza/trunk/scala-scripting/tests/src/test/scala/org/apache/clerezza/scala/tests/ScriptEngineFactoryTest.scala?rev=1455568&r1=1455567&r2=1455568&view=diff
==============================================================================
--- clerezza/trunk/scala-scripting/tests/src/test/scala/org/apache/clerezza/scala/tests/ScriptEngineFactoryTest.scala
(original)
+++ clerezza/trunk/scala-scripting/tests/src/test/scala/org/apache/clerezza/scala/tests/ScriptEngineFactoryTest.scala
Tue Mar 12 15:03:57 2013
@@ -170,7 +170,7 @@ class ScriptEngineFactoryTest {
 		try {
 			val compiledScript = engine.compile(script)
 		} catch {
-			case e => Assert.assertEquals(classOf[ScriptException], e.getClass)
+			case e: Throwable => Assert.assertEquals(classOf[ScriptException], e.getClass)
 		}
 		val string = "hello"
 		val script2 = "\""+string+"\""



Mime
View raw message