Class: Rays::Worker::Generator::EJBMaven

Inherits:
BaseWorker
  • Object
show all
Includes:
Singleton
Defined in:
lib/rays/workers/generator.rb

Overview

EJB Maven generator

Instance Method Summary collapse

Methods inherited from BaseWorker

#execute, register

Instance Method Details

#create(app_module) ⇒ Object



56
57
58
59
60
61
62
63
64
65
66
67
# File 'lib/rays/workers/generator.rb', line 56

def create(app_module)
  create_cmd = "#{$rays_config.mvn} archetype:generate" <<
      " -DarchetypeGroupId=org.codehaus.mojo.archetypes" <<
      " -DarchetypeArtifactId=ejb-javaee6" <<
      " -DarchetypeVersion=1.5" <<
      " -DgroupId=#{app_module.group_id}" <<
      " -DartifactId=#{app_module.name}" <<
      " -Dversion=#{Project.instance.version}" <<
      " -Dpackaging=war -B"
  rays_exec(create_cmd)
  MavenUtil.process_ejb app_module
end