Skip to content

Instantly share code, notes, and snippets.

@gnufied
Created July 6, 2009 07:34
Show Gist options
  • Save gnufied/141316 to your computer and use it in GitHub Desktop.
Save gnufied/141316 to your computer and use it in GitHub Desktop.
//Some comments
1. patch -p0 < scouchdb.diff
2. patch is unable to pull httpclient jar because strangely enough maven mirros doesn't contain jar (http://mirrors.ibiblio.org/pub/mirrors/maven2/org/apache/httpcomponents/httpcomponents-client/4.0-beta2/) and hence should be copied manually to "lib" direcotry.
3. sbt update
4. remove "Driver" object from "couch/json" because sbt will take care of running the test cases.
Property changes on: .
___________________________________________________________________
Added: svn:ignore
+ lib_managed
lib
target
Index: project/build/src/ScouchDbProject.scala
===================================================================
--- project/build/src/ScouchDbProject.scala (revision 0)
+++ project/build/src/ScouchDbProject.scala (revision 0)
@@ -0,0 +1,11 @@
+import sbt._
+
+class ScouchDbProject(info: ProjectInfo) extends DefaultProject(info)
+{
+ override def compileOptions = Deprecation :: super.compileOptions.toList
+ val scalaTest = "org.scala-tools.testing" % "scalatest" % "0.9.5"
+ val httpCore = "org.apache.httpcomponents" % "httpcore" % "4.0"
+ val httpClient = "org.apache.httpcomponents" % "httpcomponents-client" % "4.0-beta2"
+ val logging = "commons-logging" % "commons-logging" % "1.1"
+ val codec = "commons-codec" % "commons-codec" % "1.3"
+}
Index: project/build.properties
===================================================================
--- project/build.properties (revision 0)
+++ project/build.properties (revision 0)
@@ -0,0 +1,8 @@
+#Project properties
+#Mon Jul 06 01:39:25 IST 2009
+project.organization=empty
+project.name=scouchdb
+sbt.version=0.5.1
+project.version=1.0
+scala.version=2.7.5
+project.initialize=false
Index: src/main/scala/couch/json/Driver.scala
===================================================================
--- src/main/scala/couch/json/Driver.scala (revision 21)
+++ src/main/scala/couch/json/Driver.scala (working copy)
@@ -1,13 +0,0 @@
-package couch.json
-
-import couch.db._
-
-object Driver {
- def main(args: Array[String]) {
- (new JsonBeanSpec).execute()
- (new LocalDbSpec).execute()
- (new ScalaViewServerSpec).execute()
- (new ViewServerWithObjectsSpec).execute()
-// (new ViewServerSpec).execute()
- }
-}
Index: .svnignore
===================================================================
--- .svnignore (revision 0)
+++ .svnignore (revision 0)
@@ -0,0 +1,3 @@
+lib_managed
+lib
+target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment