Class: JrubyWarck::Application
- Inherits:
-
Rake::Application
- Object
- Rake::Application
- JrubyWarck::Application
- 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
-
#initialize ⇒ Application
constructor
A new instance of Application.
- #load_rakefile ⇒ Object
- #name ⇒ Object
- #run ⇒ Object
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
#initialize ⇒ Application
Returns a new instance of Application.
18 19 20 |
# File 'lib/jruby-warck.rb', line 18 def initialize super end |
Instance Method Details
#load_rakefile ⇒ Object
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 .show_tasks = :tasks .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 |
#name ⇒ Object
14 15 16 |
# File 'lib/jruby-warck.rb', line 14 def name 'warck' end |
#run ⇒ Object
35 36 37 38 39 |
# File 'lib/jruby-warck.rb', line 35 def run Rake.application = self super end |