Class: JBundler::JarfileLock
- Inherits:
-
Maven::Tools::DSL::JarfileLock
- Object
- Maven::Tools::DSL::JarfileLock
- JBundler::JarfileLock
- Defined in:
- lib/jbundler/jarfile_lock.rb
Instance Method Summary collapse
Instance Method Details
#classpath(scope = :runtime) ⇒ Object
32 33 34 35 36 |
# File 'lib/jbundler/jarfile_lock.rb', line 32 def classpath( scope = :runtime ) coordinates( scope ).collect do |coord| path_to_jar( coord.split( /:/ ) ) end end |
#downloaded? ⇒ Boolean
38 39 40 41 |
# File 'lib/jbundler/jarfile_lock.rb', line 38 def downloaded? classpath.member?( nil ) == false && classpath( :test ).member?( nil ) == false end |
#require(scope = :runtime) ⇒ Object
26 27 28 29 30 |
# File 'lib/jbundler/jarfile_lock.rb', line 26 def require( scope = :runtime ) coordinates( scope ).each do |coord| Jars.require_jar( coord.split( /:/ ) ) end end |