Sha256: cb3715f4f06aab5dc1cc2d4f5916bc1c3b66606d87f81c867e2b5ba0778da38f
Contents?: true
Size: 1.57 KB
Versions: 1
Compression:
Stored size: 1.57 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.17' ] h.rubyforge_name = 'rjack' h.remote_rdoc_dir = 'jetty' end t.jars = begin mods = %w{ jetty jetty-util jetty-rewrite-handler } l = mods.map { |n| "#{n}-#{ Jetty::JETTY_VERSION }.jar" } l << "servlet-api-#{ Jetty::SERVLET_API_VERSION }-#{ Jetty::SERVLET_API_DATE }.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 t.test_line_match( 'pom.xml', %r[<version>#{ Jetty::JETTY_VERSION }</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-6.1.24.0-java | Rakefile |