Method: AppEngine::Development.build_command

Defined in:
lib/appengine-tools/boot.rb

.build_command(root, jars, args) ⇒ Object



37
38
39
40
41
42
43
44
45
46
# File 'lib/appengine-tools/boot.rb', line 37

def build_command(root, jars, args)
  app_jars = root ? Dir.glob("#{root}/WEB-INF/lib/*.jar") : []
  classpath = (app_jars + jars).join(File::PATH_SEPARATOR)
  utf = "-Dfile.encoding=UTF-8"
  command = %W(java #{utf} -cp #{classpath} org.jruby.Main) + args
  if ENV['VERBOSE']
    puts command.map {|a| a.inspect}.join(' ')
  end
  command
end