Class: Jars::MavenFactory
- Inherits:
-
Object
- Object
- Jars::MavenFactory
- Defined in:
- lib/jars/maven_factory.rb
Defined Under Namespace
Modules: AttachJars
Instance Attribute Summary collapse
-
#debug ⇒ Object
readonly
Returns the value of attribute debug.
-
#verbose ⇒ Object
readonly
Returns the value of attribute verbose.
Instance Method Summary collapse
-
#initialize(options = nil, debug = Jars.debug?, verbose = Jars.verbose?) ⇒ MavenFactory
constructor
A new instance of MavenFactory.
- #maven_new(pom) ⇒ Object
Constructor Details
#initialize(options = nil, debug = Jars.debug?, verbose = Jars.verbose?) ⇒ MavenFactory
Returns a new instance of MavenFactory.
36 37 38 39 40 41 42 |
# File 'lib/jars/maven_factory.rb', line 36 def initialize( = nil, debug = Jars.debug?, verbose = Jars.verbose?) @options = ( || {}).dup @options.delete(:ignore_dependencies) @debug = debug @verbose = verbose @installed_maven = false end |
Instance Attribute Details
#debug ⇒ Object (readonly)
Returns the value of attribute debug.
34 35 36 |
# File 'lib/jars/maven_factory.rb', line 34 def debug @debug end |
#verbose ⇒ Object (readonly)
Returns the value of attribute verbose.
34 35 36 |
# File 'lib/jars/maven_factory.rb', line 34 def verbose @verbose end |
Instance Method Details
#maven_new(pom) ⇒ Object
44 45 46 47 48 49 50 51 52 |
# File 'lib/jars/maven_factory.rb', line 44 def maven_new(pom) lazy_load_maven maven = setup(Maven::Ruby::Maven.new) maven.extend AttachJars # TODO: copy pom to tmp dir in case it is not a real file maven.['-f'] = pom maven end |