buildr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From as...@apache.org
Subject svn commit: r707156 - /incubator/buildr/trunk/Rakefile
Date Wed, 22 Oct 2008 18:33:13 GMT
Author: assaf
Date: Wed Oct 22 11:33:13 2008
New Revision: 707156

URL: http://svn.apache.org/viewvc?rev=707156&view=rev
Log:
Passing --trace message to buildr when running compile task helps in debugging.

Modified:
    incubator/buildr/trunk/Rakefile

Modified: incubator/buildr/trunk/Rakefile
URL: http://svn.apache.org/viewvc/incubator/buildr/trunk/Rakefile?rev=707156&r1=707155&r2=707156&view=diff
==============================================================================
--- incubator/buildr/trunk/Rakefile (original)
+++ incubator/buildr/trunk/Rakefile Wed Oct 22 11:33:13 2008
@@ -28,7 +28,9 @@
 desc 'Compile Java libraries used by Buildr'
 task 'compile' do
   puts 'Compiling Java libraries ...'
-  sh File.expand_path('_buildr'), '--buildfile=buildr.buildfile', 'compile'
+  args = File.expand_path('_buildr'), '--buildfile=buildr.buildfile', 'compile'
+  args << '--trace' if Rake.application.options.trace
+  sh *args
   puts 'OK'
 end
 file Rake::GemPackageTask.new(spec).package_dir=>'compile'
@@ -59,4 +61,4 @@
   # run dependency checks with JRuby. (Also, good opportunity to upgrade other
   # platform's dependencies)
   sh RUBY_PLATFORM =~ /java/ ? 'ruby' : 'jruby -S rake setup dependency'
-end
\ No newline at end of file
+end



Mime
View raw message