flink-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From trohrm...@apache.org
Subject flink-web git commit: Update sbt-quickstart script to use Flink version 1.0.0 per default
Date Wed, 02 Mar 2016 15:07:37 GMT
Repository: flink-web
Updated Branches:
  refs/heads/asf-site 08f9b4668 -> 85aecdf91


Update sbt-quickstart script to use Flink version 1.0.0 per default


Project: http://git-wip-us.apache.org/repos/asf/flink-web/repo
Commit: http://git-wip-us.apache.org/repos/asf/flink-web/commit/85aecdf9
Tree: http://git-wip-us.apache.org/repos/asf/flink-web/tree/85aecdf9
Diff: http://git-wip-us.apache.org/repos/asf/flink-web/diff/85aecdf9

Branch: refs/heads/asf-site
Commit: 85aecdf917abd570cc280cd7dfd7f421a8b0d3b3
Parents: 08f9b46
Author: Till Rohrmann <trohrmann@apache.org>
Authored: Wed Mar 2 16:06:10 2016 +0100
Committer: Till Rohrmann <trohrmann@apache.org>
Committed: Wed Mar 2 16:06:10 2016 +0100

----------------------------------------------------------------------
 q/sbt-quickstart.sh | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flink-web/blob/85aecdf9/q/sbt-quickstart.sh
----------------------------------------------------------------------
diff --git a/q/sbt-quickstart.sh b/q/sbt-quickstart.sh
index 98d96ef..ca537c6 100755
--- a/q/sbt-quickstart.sh
+++ b/q/sbt-quickstart.sh
@@ -24,10 +24,8 @@ declare -r FALSE=1
 # takes a string and returns true if it seems to represent "yes"
 function isYes() {
   local x=$1
-  [ $x = "y" ] && echo $TRUE; return
-  [ $x = "Y" ] && echo $TRUE; return
-  [ $x = "yes" ] && echo $TRUE; return
-echo $FALSE
+  [ $x = "y" -o $x = "Y" -o $x = "yes" ] && echo $TRUE; return
+  echo $FALSE
 }
 
 function mkDir() {
@@ -44,7 +42,7 @@ defaultProjectName="Flink Project"
 defaultOrganization="org.example"
 defaultVersion="0.1-SNAPSHOT"
 defaultScalaVersion="2.11.7"
-defaultFlinkVersion="0.10.2"
+defaultFlinkVersion="1.0.0"
 
 echo "This script creates a Flink project using Scala and SBT."
 
@@ -73,7 +71,7 @@ while [ $TRUE ]; do
   read -p "Create Project? (Y/n): " createProject
   createProject=${createProject:-y}
   
-  [ "$(isYes $createProject)" = "$TRUE" ] && break
+  [ "$(isYes "$createProject")" = "$TRUE" ] && break
 
 done
 
@@ -113,6 +111,8 @@ lazy val root = (project in file(\".\")).
     libraryDependencies ++= flinkDependencies
   )
 
+mainClass in assembly := Some(\"$organization.Job\")
+
 // make run command include the provided dependencies
 run in Compile <<= Defaults.runTask(fullClasspath in Compile, mainClass in (Compile,
run), runner in (Compile, run))
 


Mime
View raw message