Skip to content

Commit 3f9c91c

Browse files
authored
build: forward maven exit code to rake tasks (#565)
1 parent b47f903 commit 3f9c91c

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

Rakefile

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,17 +36,20 @@ end
3636

3737
desc 'compile java sources and build jar'
3838
task :jar do
39-
mvn.prepare_package
39+
success = mvn.prepare_package
40+
exit(1) unless success
4041
end
4142

4243
desc 'run some integration test'
4344
task :integration do
44-
mvn.verify
45+
success = mvn.verify
46+
exit(1) unless success
4547
end
4648

4749
desc 'generate the pom.xml from the Mavenfile'
4850
task :pom do
49-
mvn.validate('-Dpolyglot.dump.pom=pom.xml')
51+
success = mvn.validate('-Dpolyglot.dump.pom=pom.xml')
52+
exit(1) unless success
5053
end
5154

5255
# Make sure jar gets compiled before the gem is built

0 commit comments

Comments
 (0)