Skip to content

Commit

Permalink
sbt structure
Browse files Browse the repository at this point in the history
  • Loading branch information
jakedouglas committed Mar 20, 2011
1 parent a50280f commit 4e9c86a
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
target/
lib_managed/
src_managed/
project/boot/
dist
.DS_Store
8 changes: 8 additions & 0 deletions project/build.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#Project properties
#Sun Mar 20 00:29:24 PDT 2011
project.organization=com.bitlove
project.name=memcached.scala
sbt.version=0.7.4
project.version=0.0.1
build.scala.versions=2.8.0
project.initialize=false
8 changes: 8 additions & 0 deletions project/build/MemcachedProject.scala
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import sbt._
import Process._
import java.io.File
import java.lang.ProcessBuilder

class MemcachedProject(info: ProjectInfo) extends DefaultProject(info) {

}
2 changes: 1 addition & 1 deletion Memcache.scala → src/main/scala/Memcache.scala
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ object RequestBuilder {
class Memcached(host: String, port: Int) {
class ProtocolError(message: String) extends Error(message)

private val addr = new InetSocketAddress("localhost", 11211)
private val addr = new InetSocketAddress(host, port)
private val channel = SocketChannel.open(addr)
private val header = ByteBuffer.allocate(24)

Expand Down

0 comments on commit 4e9c86a

Please sign in to comment.