diff --git a/server/compileScala.csh b/server/compileScala.csh new file mode 100755 index 0000000..de2ff78 --- /dev/null +++ b/server/compileScala.csh @@ -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 diff --git a/server/compileScrooge.csh b/server/compileScrooge.csh new file mode 100755 index 0000000..16df56d --- /dev/null +++ b/server/compileScrooge.csh @@ -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 diff --git a/server/run.csh b/server/run.csh new file mode 100755 index 0000000..60c7963 --- /dev/null +++ b/server/run.csh @@ -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