Skip to content

Instantly share code, notes, and snippets.

@phdoerfler
Last active December 11, 2015 13:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save phdoerfler/e1c8b09708c114954136 to your computer and use it in GitHub Desktop.
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.
#!/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