File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,13 +10,15 @@ require 'bundler/gem_helper'
1010Bundler ::GemHelper . install_tasks :dir => File . dirname ( __FILE__ )
1111
1212require 'rake/clean'
13- CLEAN << "pkg" << "doc" << Dir [ 'integration/**/target' ]
13+ CLEAN << "pkg" << "doc" << Dir [ 'integration/**/target' ] << "lib/warbler_jar.jar"
1414
1515require 'rspec/core/rake_task'
1616RSpec ::Core ::RakeTask . new ( :spec ) do |t |
1717 t . rspec_opts = [ '--color' , "--format documentation" ]
1818end
1919
20+ task :spec => :jar
21+
2022task :default => :spec
2123
2224# use Mavenfile to define :jar task
@@ -36,7 +38,7 @@ task :jar do
3638end
3739
3840desc 'run some integration test'
39- task :integration do
41+ task :integration => :jar do
4042 success = mvn . verify
4143 exit ( 1 ) unless success
4244end
Original file line number Diff line number Diff line change @@ -20,6 +20,8 @@ bundle up all of your application files for deployment to a Java environment.}
2020 reject { |file | file =~ /^spec|test\/ / } . # spec/**/*.spec
2121 reject { |file | file =~ /^integration\/ / } . # (un-used) *.rake files
2222 reject { |file | file =~ /^rakelib\/ / } # (un-used) *.rake files
23+ gem . files << "lib/warbler_jar.jar"
24+
2325 gem . test_files = [ ] # tests and specs add 700k to the gem, so don't include them
2426 gem . executables = `git ls-files -- bin/*` . split ( "\n " ) . map { |f | File . basename ( f ) }
2527 gem . require_paths = [ "lib" ]
You can’t perform that action at this time.
0 commit comments