Class: Rays::Worker::Builder::Maven

Inherits:
Rays::Worker::BaseWorker show all
Includes:
Singleton
Defined in:
lib/rays/workers/builder.rb

Overview

Liferay Maven builder

Instance Method Summary collapse

Methods inherited from Rays::Worker::BaseWorker

#execute, register

Instance Method Details

#build(app_module, skip_test = false) ⇒ Object



32
33
34
35
36
37
38
39
# File 'lib/rays/workers/builder.rb', line 32

def build(app_module, skip_test = false)
  execute('build', app_module) do
    test_args = ''
    test_args = '-Dmaven.skip.tests=true' if skip_test

    rays_exec("#{$rays_config.mvn} clean package #{test_args}")
  end
end