Repository: incubator-samza-hello-samza
Updated Branches:
  refs/heads/latest [created] d4ad1d1da


update bin/grid to bootstrap samza's master branch into local m2 repo


Project: http://git-wip-us.apache.org/repos/asf/incubator-samza-hello-samza/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/incubator-samza-hello-samza/commit/51d386be
Tree: 
http://git-wip-us.apache.org/repos/asf/incubator-samza-hello-samza/tree/51d386be
Diff: 
http://git-wip-us.apache.org/repos/asf/incubator-samza-hello-samza/diff/51d386be

Branch: refs/heads/latest
Commit: 51d386becd556cfe3e8cc521c2b3e2cd79ea4155
Parents: 78047be
Author: Chris Riccomini <[email protected]>
Authored: Fri Aug 1 11:06:00 2014 -0700
Committer: Chris Riccomini <[email protected]>
Committed: Fri Aug 1 11:06:00 2014 -0700

----------------------------------------------------------------------
 bin/grid | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-samza-hello-samza/blob/51d386be/bin/grid
----------------------------------------------------------------------
diff --git a/bin/grid b/bin/grid
index 4324c92..a96bfa7 100755
--- a/bin/grid
+++ b/bin/grid
@@ -50,11 +50,28 @@ bootstrap() {
 }
 
 install_all() {
+  $DIR/grid install samza
   $DIR/grid install zookeeper
   $DIR/grid install yarn
   $DIR/grid install kafka
 }
 
+install_samza() {
+  mkdir -p "$DEPLOY_ROOT_DIR"
+  if [ -d "$DOWNLOAD_CACHE_DIR/incubator-samza/.git" ]; then
+    pushd "$DOWNLOAD_CACHE_DIR/incubator-samza"
+    git fetch origin
+    git reset --hard origin/master
+  else
+    mkdir -p $DOWNLOAD_CACHE_DIR
+    pushd $DOWNLOAD_CACHE_DIR
+    git clone git://git.apache.org/incubator-samza.git
+    cd incubator-samza
+  fi
+  ./gradlew -PscalaVersion=2.10 clean publishToMavenLocal
+  popd
+}
+
 install_zookeeper() {
   mkdir -p "$DEPLOY_ROOT_DIR"
   install zookeeper $DOWNLOAD_ZOOKEEPER zookeeper-3.4.3

Reply via email to