Skip to content

Instantly share code, notes, and snippets.

@jenya239
Created May 16, 2017 17:18
Show Gist options
  • Save jenya239/77278b94f61feb84d9953d1fb8843dd5 to your computer and use it in GitHub Desktop.
Save jenya239/77278b94f61feb84d9953d1fb8843dd5 to your computer and use it in GitHub Desktop.
require 'find'
paths = []
Find.find('.') do |path|
next unless path =~ /.*\.jar$/
next if path =~ /javadoc\.jar$/ or path =~ /sources\.jar$/
next if path.include? 'test'
paths << path
end
paths.each do | path |
print path + "\n"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment