-
-
Save phdoerfler/e1c8b09708c114954136 to your computer and use it in GitHub Desktop.
A launch script for SBT which warns if there are locally published libraries.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
ivy = File.join(Dir.home, '/.ivy2/local') | |
local = Dir[File.join(ivy, '*/*/*')] | |
if not local.empty? | |
puts "\e[1m\e[33mFiles in IVY local:" | |
local.each do |d| | |
puts "- " + d.sub(ivy + '/', '').split('/').map { |s| '"' + s + '"' }.join(' % ') | |
end | |
puts "\e[0m\e[22m" | |
end | |
exec('java -Xms64M -Xmx1536M -Xss1M -XX:+CMSClassUnloadingEnabled -XX:MaxPermSize=700M -jar /home/philipp/bin/sbt-launch.jar ' + ARGV.join(' ')) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment