Class: JrubyWarck::Application

Inherits:
Rake::Application
  • Object
show all
Includes:
Constants, Manipulations, Rake::DSL
Defined in:
lib/jruby-warck.rb

Constant Summary

Constants included from Constants

Constants::ADDITIONAL_CLASSPATH, Constants::BOOTSTRAP_ERB, Constants::BUILD_DIR, Constants::CLASSPATH, Constants::CONTEXT_LISTENERS, Constants::HOME, Constants::INIT, Constants::MANIFEST_MF, Constants::META_INF, Constants::RACKUP_FILE, Constants::REJECT_FILES, Constants::RUNNING_FROM, Constants::SELECT_FILES, Constants::WEB_INF, Constants::WEB_XML

Instance Method Summary collapse

Methods included from Manipulations

#add_additional_files, #add_bootstrap_script, #add_class_files, #add_deployment_descriptor, #add_init_file, #add_manifest_file, #add_public_files, #add_rackup_file, #add_ruby_files, #archive_war, #compile_ruby_scripts, #create_archive_dirs, #generate_deployment_descriptor

Constructor Details

#initializeApplication

Returns a new instance of Application.



18
19
20
# File 'lib/jruby-warck.rb', line 18

def initialize
  super 
end

Instance Method Details

#load_rakefileObject



22
23
24
25
26
27
28
29
30
31
32
33
# File 'lib/jruby-warck.rb', line 22

def load_rakefile
  Rake::TaskManager. = true
  task :default do
    options.show_tasks        = :tasks
    options.show_task_pattern = //
    puts "#{name} #{JrubyWarck::VERSION.version} -- package your Rack application in a .war file that can be run from the command line or in a servlet container!"
    puts "Available commands:"
    display_tasks_and_comments
  end
  
  load 'jruby-warck/tasks/jruby.rake'
end

#nameObject



14
15
16
# File 'lib/jruby-warck.rb', line 14

def name
  'warck'
end

#runObject



35
36
37
38
39
# File 'lib/jruby-warck.rb', line 35

def run
  Rake.application = self

  super
end