Class: Tetra::Mvn
- Inherits:
-
Object
- Object
- Tetra::Mvn
- Defined in:
- lib/tetra/facades/mvn.rb
Overview
encapsulates tetra-specific Maven commandline options
Class Method Summary collapse
-
.commandline(project_path, mvn_path) ⇒ Object
returns a command line for running Maven.
Class Method Details
.commandline(project_path, mvn_path) ⇒ Object
returns a command line for running Maven
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/tetra/facades/mvn.rb', line 7 def self.commandline(project_path, mvn_path) full_path = if mvn_path File.join(project_path, mvn_path, "mvn") else "mvn" # use system-provided executable end repo_path = File.join(project_path, "kit", "m2") config_path = File.join(project_path, "kit", "m2", "settings.xml") = [ "-Dmaven.repo.local=#{repo_path}", "--settings #{config_path}", "--strict-checksums" ] "#{full_path} #{options.join(' ')}" end |