Skip to content

Commit

Permalink
Add shell scripts for compiling and running.
Browse files Browse the repository at this point in the history
  • Loading branch information
fleminra committed Apr 18, 2014
1 parent efc39c0 commit 00a7125
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
6 changes: 6 additions & 0 deletions server/compileScala.csh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#! /bin/csh

setenv CLASSPATH lib/finagle-core_2.10-6.13.1.jar:lib/finagle-thrift_2.10-6.13.1.jar:lib/scrooge-core_2.10-3.13.1.jar:lib/util-core_2.10-6.13.2.jar:lib/netty-3.8.1.Final.jar:lib/libthrift-0.9.1.jar

mkdir -p build/classes/main
/usr/local/scala-2.10.3/bin/scalac -cp $CLASSPATH -d build/classes/main src/main/scala/Server.scala build/scrooge/scala/thrift/*.scala
7 changes: 7 additions & 0 deletions server/compileScrooge.csh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#! /bin/csh

setenv JAVA /usr/lib/jvm/java-7-oracle/bin/java
setenv CLASSPATH lib/scopt_2.10-2.1.0.jar:lib/scrooge-generator_2.10-3.13.1.jar:lib/scala-library-2.10.3.jar

mkdir -p build/scrooge/scala
$JAVA -cp "$CLASSPATH" com.twitter.scrooge.Main --finagle -d build/scrooge/scala src/main/thrift/Service.thrift
6 changes: 6 additions & 0 deletions server/run.csh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#! /bin/csh

setenv JAVA /usr/lib/jvm/java-7-oracle/bin/java
setenv CLASSPATH lib/finagle-core_2.10-6.13.1.jar:lib/finagle-thrift_2.10-6.13.1.jar:lib/scrooge-core_2.10-3.13.1.jar:lib/util-app_2.10-6.13.2.jar:lib/util-core_2.10-6.13.2.jar:lib/util-jvm_2.10-6.13.2.jar:lib/netty-3.8.1.Final.jar:lib/libthrift-0.9.1.jar:lib/scala-library-2.10.3.jar:build/classes/main

$JAVA -cp $CLASSPATH Server

0 comments on commit 00a7125

Please sign in to comment.