Sha256: 68dde4cab995bede0e89b53195bb07054563619eb66a5de1479a19b6908b0df3

Contents?: true

Size: 719 Bytes

Versions: 14

Compression:

Stored size: 719 Bytes

Contents

# encoding: UTF-8

module Tetra
  # encapsulates tetra-specific Maven commandline options
  class Mvn
    # returns a command line for running Maven
    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")

      options = [
        "-Dmaven.repo.local=#{repo_path}",
        "--settings #{config_path}",
        "--strict-checksums"
      ]

      "#{full_path} #{options.join(' ')}"
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
tetra-2.0.6 lib/tetra/facades/mvn.rb
tetra-2.0.5 lib/tetra/facades/mvn.rb
tetra-2.0.4 lib/tetra/facades/mvn.rb
tetra-2.0.3 lib/tetra/facades/mvn.rb
tetra-2.0.2 lib/tetra/facades/mvn.rb
tetra-2.0.1 lib/tetra/facades/mvn.rb
tetra-2.0.0 lib/tetra/facades/mvn.rb
tetra-1.2.2 lib/tetra/facades/mvn.rb
tetra-1.2.1 lib/tetra/facades/mvn.rb
tetra-1.2.0 lib/tetra/facades/mvn.rb
tetra-1.1.0 lib/tetra/facades/mvn.rb
tetra-1.0.0 lib/tetra/facades/mvn.rb
tetra-0.54.0 lib/tetra/facades/mvn.rb
tetra-0.53.0 lib/tetra/facades/mvn.rb