buildr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vbo...@apache.org
Subject svn commit: r630957 - /incubator/buildr/trunk/lib/core/generate.rb
Date Mon, 25 Feb 2008 19:02:34 GMT
Author: vborja
Date: Mon Feb 25 11:02:26 2008
New Revision: 630957

URL: http://svn.apache.org/viewvc?rev=630957&view=rev
Log:
generate task uses value for --buildfile option if specified.

Modified:
    incubator/buildr/trunk/lib/core/generate.rb

Modified: incubator/buildr/trunk/lib/core/generate.rb
URL: http://svn.apache.org/viewvc/incubator/buildr/trunk/lib/core/generate.rb?rev=630957&r1=630956&r2=630957&view=diff
==============================================================================
--- incubator/buildr/trunk/lib/core/generate.rb (original)
+++ incubator/buildr/trunk/lib/core/generate.rb Mon Feb 25 11:02:26 2008
@@ -30,7 +30,7 @@
       end
        
       if script    
-        buildfile = File.expand_path("buildfile")
+        buildfile = File.expand_path(Rake.application.instance_variable_get(:@rakefiles).first)
         File.open(buildfile, "w") { |file| file.write script }
         puts "Created #{buildfile}"
       end        



Mime
View raw message