Skip to content
This repository has been archived by the owner on Apr 25, 2021. It is now read-only.

add offline installation #145

Merged
merged 1 commit into from
Mar 10, 2017
Merged

add offline installation #145

merged 1 commit into from
Mar 10, 2017

Conversation

eed3si9n
Copy link
Member

To utilize local preloaded repo, this will create lib/ directory with all artifacts required for sbt. This can be rsynced to the preloaded repo.

@eed3si9n eed3si9n requested review from dwijnand and cunei March 10, 2017 06:52
@eed3si9n eed3si9n changed the title add offline installtion add offline installation Mar 10, 2017
@@ -156,6 +157,12 @@ process_args () {
vlog "[process_args] java_version = '$java_version'"
}

syncPreloaded() {
[[ -f "$HOME/.sbt/preloaded/org.scala-sbt/sbt/$init_sbt_version/jars/sbt.jar" ]] || {
rsync -a --ignore-existing "$sbt_home/lib/local-preloaded/" "$HOME/.sbt/preloaded"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we safely assume that rsync is available on the PATH?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+    command -v rsync >/dev/null 2>&1 && {
+      rsync -a --ignore-existing "$sbt_home/lib/local-preloaded/" "$HOME/.sbt/preloaded"
+    }

Added a fix.

To utilize local preloaded repo, this will create lib/ directory with all artifacts required for sbt. This can be rsynced to the preloaded repo.
@dwijnand dwijnand merged commit c6c8470 into master Mar 10, 2017
@dwijnand dwijnand deleted the wip/offline branch March 10, 2017 22:19
@eed3si9n
Copy link
Member Author

Whohoo!

eed3si9n added a commit to eed3si9n/sbt-launcher-package that referenced this pull request Dec 13, 2019
er1c pushed a commit to er1c/sbt-launcher-package that referenced this pull request Dec 20, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants