buildr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From boisv...@apache.org
Subject svn commit: r1042735 - in /buildr/trunk: CHANGELOG lib/buildr/core/generate.rb
Date Mon, 06 Dec 2010 17:28:31 GMT
Author: boisvert
Date: Mon Dec  6 17:28:31 2010
New Revision: 1042735

URL: http://svn.apache.org/viewvc?rev=1042735&view=rev
Log:
Automatically add "require buildr/{groovy,scala}"  when generating
project if Groovy/Scala files are detected.

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

Modified: buildr/trunk/CHANGELOG
URL: http://svn.apache.org/viewvc/buildr/trunk/CHANGELOG?rev=1042735&r1=1042734&r2=1042735&view=diff
==============================================================================
--- buildr/trunk/CHANGELOG (original)
+++ buildr/trunk/CHANGELOG Mon Dec  6 17:28:31 2010
@@ -11,6 +11,8 @@
 * Added:  BUILDR-538 Shell tasks should support passing :java_args
 * Added:  BUILDR-544 Support ${groupId} in pom files (Chris Dean)
 * Added:  BUILDR-552 Projects may now be defined using project(:name) and a block
+* Added:  Automatically add "require buildr/{groovy,scala}"  when generating
+          project if Groovy/Scala files are detected.
 * Change: BUILDR-540 Upgrade to rspec 2.1.0
 * Change: BUILDR-546 Upgrade to Rubyzip 0.9.4 (Michael Guymon)
 * Change: Upgrade default Scala compiler version to 2.8.1-final

Modified: buildr/trunk/lib/buildr/core/generate.rb
URL: http://svn.apache.org/viewvc/buildr/trunk/lib/buildr/core/generate.rb?rev=1042735&r1=1042734&r2=1042735&view=diff
==============================================================================
--- buildr/trunk/lib/buildr/core/generate.rb (original)
+++ buildr/trunk/lib/buildr/core/generate.rb Mon Dec  6 17:28:31 2010
@@ -47,6 +47,8 @@ module Buildr
           if root
             script = HEADER.split("\n")
             header = <<-EOF
+#{"require 'buildr/scala'\n" if Dir.glob(path + "/**/*.scala").size > 0}
+#{"require 'buildr/groovy'\n" if Dir.glob(path + "/**/*.groovy").size > 0}
 # Version number for this release
 VERSION_NUMBER = "1.0.0"
 # Group identifier for your projects



Mime
View raw message