Class: Maven::Tools::MavenProject
- Inherits:
-
Model::Project
- Object
- Model::Tag
- Model::Coordinate
- Model::Project
- Maven::Tools::MavenProject
- Defined in:
- lib/maven/tools/maven_project.rb
Direct Known Subclasses
Instance Method Summary collapse
Methods inherited from Model::Project
#_name, #build, #dependency_management, #description, #description=, #developers, #dump_pom, #execute_in_phase, #executions_in_phase, #initialize, #licenses, #name, #name=, #parent, #plugin, #plugin?, #plugin_repositories, #plugin_repository, #profile, #profiles, #properties, #properties=, #repositories, #repository, #source_control, #version
Methods included from Model::Dependencies
#dependencies, #detect_gem, #gem, #gem?, included, #jar, #jar?, #pom, #pom?, #test_jar, #test_jar?
Methods inherited from Model::Coordinate
#==, #hash, #initialize, #version?
Methods included from Coordinate
#gav, #group_artifact, #to_coordinate, #to_split_coordinate, #to_version
Methods inherited from Model::Tag
#_name, _tags, #comment, #initialize, prepend_tags, tags, #to_xml
Constructor Details
This class inherits a constructor from Maven::Model::Project
Instance Method Details
#load_jarfile(file) ⇒ Object
56 57 58 59 60 61 62 63 64 65 66 67 68 |
# File 'lib/maven/tools/maven_project.rb', line 56 def load_jarfile(file) jars = Jarfile.new(file) if jars.exists? container = ArtifactPassthrough.new do |a| artifactId, groupId, extension, version = a.split(/:/) send(extension.to_sym, "#{artifactId}:#{groupId}", version) end if !jars.exists_lock? || jars.mtime > jars.mtime_lock jars.populate_unlocked container end jars.populate_locked container end end |