Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
spark
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cs525-sp18-g07
spark
Commits
df92f1c0
Commit
df92f1c0
authored
11 years ago
by
Holden Karau
Browse files
Options
Downloads
Patches
Plain Diff
reindent
parent
d7d95a09
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
sbt/sbt
+31
-31
31 additions, 31 deletions
sbt/sbt
with
31 additions
and
31 deletions
sbt/sbt
+
31
−
31
View file @
df92f1c0
...
...
@@ -9,40 +9,40 @@ JAR=sbt/sbt-launch-${SBT_VERSION}.jar
printf
"Checking for system sbt ["
if
hash
sbt 2>/dev/null
;
then
printf
"FOUND]
\n
"
# Use System SBT
sbt
$@
printf
"FOUND]
\n
"
# Use System SBT
sbt
$@
else
printf
"NOT FOUND]
\n
"
# Download sbt or use already downloaded
if
[
!
-d
.sbtlib
]
;
then
mkdir
.sbtlib
fi
if
[
!
-f
${
JAR
}
]
;
then
# Download
printf
"Attempting to fetch sbt
\n
"
if
hash
curl 2>/dev/null
;
then
printf
"NOT FOUND]
\n
"
# Download sbt or use already downloaded
if
[
!
-d
.sbtlib
]
;
then
mkdir
.sbtlib
fi
if
[
!
-f
${
JAR
}
]
;
then
# Download
printf
"Attempting to fetch sbt
\n
"
if
hash
curl 2>/dev/null
;
then
curl
--progress-bar
${
URL1
}
>
${
JAR
}
||
curl
--progress-bar
${
URL2
}
>
${
JAR
}
elif
hash
wget 2>/dev/null
;
then
elif
hash
wget 2>/dev/null
;
then
wget
--progress
=
bar
${
URL1
}
-O
${
JAR
}
||
wget
--progress
=
bar
${
URL2
}
-O
${
JAR
}
else
else
printf
"You do not have curl or wget installed, please install sbt manually from http://www.scala-sbt.org/
\n
"
exit
fi
fi
if
[
!
-f
${
JAR
}
]
;
then
# We failed to download
printf
"Our attempt to download sbt locally to {
$JAR
} failed. Please install sbt manually from http://www.scala-sbt.org/
\n
"
exit
fi
printf
"Launching sbt from .sbtlib
\n
"
java
\
-Duser
.timezone
=
UTC
\
-Djava
.awt.headless
=
true
\
-Dfile
.encoding
=
UTF-8
\
-XX
:MaxPermSize
=
256m
\
-Xmx1g
\
-noverify
\
-jar
${
JAR
}
\
"
$@
"
fi
fi
if
[
!
-f
${
JAR
}
]
;
then
# We failed to download
printf
"Our attempt to download sbt locally to {
$JAR
} failed. Please install sbt manually from http://www.scala-sbt.org/
\n
"
exit
fi
printf
"Launching sbt from .sbtlib
\n
"
java
\
-Duser
.timezone
=
UTC
\
-Djava
.awt.headless
=
true
\
-Dfile
.encoding
=
UTF-8
\
-XX
:MaxPermSize
=
256m
\
-Xmx1g
\
-noverify
\
-jar
${
JAR
}
\
"
$@
"
fi
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment