Sha256: fe2b84e6ef9649ae0ed223c779a07e7781c25c61967d4ad9596ebcde46364d0e

Contents?: true

Size: 1.63 KB

Versions: 1

Compression:

Stored size: 1.63 KB

Contents

# -*- ruby -*-

$LOAD_PATH << './lib'
require 'rjack-jetty/base'

require 'rubygems'
gem     'rjack-tarpit', '~> 1.2.0'
require 'rjack-tarpit'

include RJack

t = TarPit.new( 'rjack-jetty', Jetty::VERSION, :java_platform )

t.specify do |h|
  h.developer( "David Kellum", "dek-oss@gravitext.com" )
  h.extra_dev_deps << [ 'rjack-logback', '>= 0.9.18', '< 2.0' ]
  h.rubyforge_name  = 'rjack'
  h.remote_rdoc_dir = 'jetty'
end

t.jars =
  begin
    mods = %w[ webapp xml servlet security server continuation http io util rewrite ]
    l = mods.map { |n| "jetty-#{n}-#{ Jetty::JETTY_VERSION }.#{ Jetty::JETTY_BUILD }.jar" }
    l << "servlet-api-#{ Jetty::SERVLET_API_VERSION }.jar"
    l << 'rjack-jetty-1.0.jar'
    l
  end

file 'Manifest.txt' => [ "lib/#{t.name}/base.rb" ]

file 'webapps/test.war' => [ 'webapps/test/index.html',
                             'webapps/test/WEB-INF/web.xml' ] do
  sh( 'jar cvf webapps/test.war ' +
      '-C webapps/test index.html -C webapps/test WEB-INF/web.xml' )
end

t.generated_files = 'webapps/test.war'

t.assembly_version = 1.0

task :check_pom_deps do
  v = "#{ Jetty::JETTY_VERSION }.#{ Jetty::JETTY_BUILD }"
  t.test_line_match( 'pom.xml', %r{<version>#{ v }</version>} )
end
task :check_history_version do
  t.test_line_match( 'History.rdoc', /^==/, / #{t.version} / )
end
task :check_history_date do
  t.test_line_match( 'History.rdoc', /^==/, /\([0-9\-]+\)$/ )
end

task :gem  => [ :check_pom_deps, :check_history_version                      ]
task :tag  => [ :check_pom_deps, :check_history_version, :check_history_date ]
task :push => [                                          :check_history_date ]

t.define_tasks

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rjack-jetty-7.2.2.0-java Rakefile