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

tar executable isn't available on Windows #37

Open
timgifford opened this issue Jul 10, 2017 · 1 comment
Open

tar executable isn't available on Windows #37

timgifford opened this issue Jul 10, 2017 · 1 comment

Comments

@timgifford
Copy link

I don't know how large the intersection is between scala devs and Windows users, but I attempted to run the deploy task on a windows bat shell and it failed because I didn't have tar on my path (it works fine from a git-bash or cygwin).

I won't be submitting a PR, because I don't care that much 😄 but figured future users might like to know it's a known issue.

Offending line

Process(Seq("tar", "xzf", targz.getName), targetDir).!!

Potential fix using https://rauschig.org/jarchivelib/:

 Try(ArchiverFactory.createArchiver(targz).extract(targz, targetDir)).isSuccess

In other news, I'm moving away from using this plugin. I'd like to be able to deploy and start the .jar during the tests. When I would run the tests from IntelliJ, they weren't connected to the SBT tasks, so it was getting messy. Thank you for sharing the plugin, it helped get me started and keeps me moving!

@bdarfler
Copy link
Contributor

Hi @timgifford, thanks for the tip! When using IntelliJ I usually start/stop the plugin manually from an SBT prompt and let it run in the background. However, I totally understand if it's more effective to roll your own solution.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants