Module: JRAW::JRAWClassLoader
- Defined in:
- lib/jraw_utilities.rb
Class Method Summary collapse
Class Method Details
.load_ant_libs(ant_home) ⇒ Object
25 26 27 28 |
# File 'lib/jraw_utilities.rb', line 25 def load_ant_libs(ant_home) jars = match(ant_home + File::SEPARATOR + 'lib') {|p| ext = p[-4...p.size]; ext && ext.downcase == '.jar'} JRAW::RjbAdapter.load(jars) end |
.match(*paths) ⇒ Object
19 20 21 22 23 |
# File 'lib/jraw_utilities.rb', line 19 def match(*paths) matched = Array.new Find.find(*paths){ |path| matched << path if yield path } return matched end |