clerezza-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r...@apache.org
Subject svn commit: r1538292 - /clerezza/trunk/shell/src/main/scala/org/apache/clerezza/shell/OsgiDsl.scala
Date Sat, 02 Nov 2013 22:00:48 GMT
Author: reto
Date: Sat Nov  2 22:00:48 2013
New Revision: 1538292

URL: http://svn.apache.org/r1538292
Log:
reformatting (spaces instead of tabs)

Modified:
    clerezza/trunk/shell/src/main/scala/org/apache/clerezza/shell/OsgiDsl.scala

Modified: clerezza/trunk/shell/src/main/scala/org/apache/clerezza/shell/OsgiDsl.scala
URL: http://svn.apache.org/viewvc/clerezza/trunk/shell/src/main/scala/org/apache/clerezza/shell/OsgiDsl.scala?rev=1538292&r1=1538291&r2=1538292&view=diff
==============================================================================
--- clerezza/trunk/shell/src/main/scala/org/apache/clerezza/shell/OsgiDsl.scala (original)
+++ clerezza/trunk/shell/src/main/scala/org/apache/clerezza/shell/OsgiDsl.scala Sat Nov  2
22:00:48 2013
@@ -27,41 +27,41 @@ import org.osgi.service.component.Compon
 import scala.collection.JavaConversions._
 
 class OsgiDsl(context: ComponentContext, outputStream: OutputStream) 
-		extends ServicesDsl(context.getBundleContext) {
+    extends ServicesDsl(context.getBundleContext) {
 
-	lazy val out = new PrintWriter(new OutputStreamWriter(outputStream, "utf-8"), true)
-	val bundleContext = context.getBundleContext
+  lazy val out = new PrintWriter(new OutputStreamWriter(outputStream, "utf-8"), true)
+  val bundleContext = context.getBundleContext
 
-	def ps = {
-		for (b <- bundleContext.getBundles) {out.println(b.getBundleId+" - "+b.getSymbolicName+"
"+b.getLocation)}
-	}
-
-	def install(uri: String) = {
-		bundleContext.installBundle(uri)
-	}
-
-	def start(uri: String) = {
-		val b = install(uri)
-		b.start()
-		b
-	}
-
-	def update(pattern: String) = {
-		for (b <- bundleContext.getBundles; if (b.getLocation.matches(pattern))) {
-			out.println("updating "+b.getLocation)
-			b.update()
-		}
-	}
-
-	def headers(bundleId: Int) {
-		headers(bundleContext.getBundle(bundleId))
-	}
-
-	def headers(bundle: Bundle) {
-		for ((k,v) <- bundle.getHeaders) {out.println(k+" = "+v) }
-	}
-
-	def shutdown {
-		bundleContext.getBundle(0).stop()
-	}
+  def ps = {
+    for (b <- bundleContext.getBundles) {out.println(b.getBundleId+" - "+b.getSymbolicName+"
"+b.getLocation)}
+  }
+
+  def install(uri: String) = {
+    bundleContext.installBundle(uri)
+  }
+
+  def start(uri: String) = {
+    val b = install(uri)
+    b.start()
+    b
+  }
+
+  def update(pattern: String) = {
+    for (b <- bundleContext.getBundles; if (b.getLocation.matches(pattern))) {
+      out.println("updating "+b.getLocation)
+      b.update()
+    }
+  }
+
+  def headers(bundleId: Int) {
+    headers(bundleContext.getBundle(bundleId))
+  }
+
+  def headers(bundle: Bundle) {
+    for ((k,v) <- bundle.getHeaders) {out.println(k+" = "+v) }
+  }
+
+  def shutdown {
+    bundleContext.getBundle(0).stop()
+  }
 }



Mime
View raw message