Sha256: 70d6a013741042633b7ae8fb01e3f29594134f530fff5ab3e2eaafe0db556b0a

Contents?: true

Size: 1.45 KB

Versions: 6

Compression:

Stored size: 1.45 KB

Contents

require 'jruby-warck/manipulations'
require 'jruby-warck/constants'
require 'jruby-warck/config'

include JrubyWarck::Manipulations
include JrubyWarck::Constants

desc "Create a .war package out of this application"
task :package, [:archive_name, :framework] do |t, args|
  args.with_defaults(:archive_name => File.basename(RUNNING_FROM), :framework => :rack)

  create_archive_dirs
  add_manifest_file
  add_deployment_descriptor(args[:framework])
  add_rackup_file if File.exists?(RACKUP_FILE)
  add_init_file
  add_ruby_files
  add_public_files
  add_additional_files
  add_bootstrap_script(args[:archive_name])
  archive_war(args[:archive_name], Config.force?)
end

desc "Create a .war package out of this application, compiling Ruby sources to .class files"
task :package_compiled, [:archive_name, :framework] do |t, args|
  args.with_defaults(:archive_name => File.basename(RUNNING_FROM), :framework => :rack)

  create_archive_dirs
  add_manifest_file
  add_deployment_descriptor(args[:framework])
  add_rackup_file if File.exists?(RACKUP_FILE)
  add_init_file
  compile_ruby_scripts
  add_class_files
  add_public_files
  add_additional_files
  add_bootstrap_script(args[:archive_name])
  archive_war(args[:archive_name], Config.force?)
end

desc "Generate a deployment descriptor (web.xml) to be customized for this application"
task :webxml, :framework do |t, args|
  args.with_defaults(:framework => :rack)

  generate_deployment_descriptor("web.xml", args[:framework]) 
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
jruby-warck-1.2.4 lib/jruby-warck/tasks/jruby.rake
jruby-warck-1.2.3 lib/jruby-warck/tasks/jruby.rake
jruby-warck-1.2.2 lib/jruby-warck/tasks/jruby.rake
jruby-warck-1.2.1 lib/jruby-warck/tasks/jruby.rake
jruby-warck-1.1.2 lib/jruby-warck/tasks/jruby.rake
jruby-warck-1.1.1 lib/jruby-warck/tasks/jruby.rake