Permalink
Browse files

setting up 'buildr' with this project

  • Loading branch information...
andrey
andrey committed Sep 10, 2010
1 parent 02d43e3 commit 10a15ca249c7ccdedfa7ab872dd44005da8ce2b7
View
@@ -0,0 +1,2 @@
+reports
+target
View
@@ -0,0 +1,26 @@
+Buildr.settings.build['scala.version'] = "2.8.0"
+
+require 'buildr/scala'
+
+
+VERSION_NUMBER = "1.0.0"
+GROUP = "redis-client-scala-netty"
+COPYRIGHT = "Fotolog, Inc"
+
+repositories.remote << 'http://scala-tools.org/repo-releases/'
+repositories.remote << "http://www.ibiblio.org/maven2/"
+repositories.remote << 'http://repository.jboss.org/maven2/'
+
+desc "The Redis-client-scala-netty project"
+define "redis-client-scala-netty" do
+
+ project.version = VERSION_NUMBER
+ project.group = GROUP
+ manifest["Fotolog"] = COPYRIGHT
+
+ compile.with 'org.jboss.netty:netty:jar:3.1.5.GA'
+ compile.with 'apache-log4j:log4j:jar:1.2.15'
+
+ package :jar
+
+end
@@ -26,12 +26,12 @@ object KeyType {
object Conversions {
import RedisClientTypes._
- import com.google.protobuf.Message
// implicit def getValueFromTheFuture[T](f: Future[T]): T = f.get()
+// implicit def convertProtobufToByteArray(m: Message): BinVal = m.toByteArray
+
implicit def convertStringToByteArray(s: String): BinVal = s.getBytes
implicit def convertByteArrayToString(b: BinVal): String = new String(b)
- implicit def convertProtobufToByteArray(m: Message): BinVal = m.toByteArray
}
object RedisClient {
@@ -1,12 +1,12 @@
package com.fotolog.redis
-import com.fotolog.junit.FotologTestCase
+import junit.framework.TestCase
import org.junit._
import Assert._
import Conversions._
-class RedisClientTest extends FotologTestCase {
+class RedisClientTest extends TestCase {
val c = RedisClient()
override def setUp() = super.setUp; c.flushall
@@ -126,4 +126,4 @@ class RedisClientTest extends FotologTestCase {
assertTrue(c.hdel("hk", "foo"))
assertFalse(c.hexists("hk", "foo"))
}
-}
+}

0 comments on commit 10a15ca

Please sign in to comment.