Repository: buildr
Updated Branches:
  refs/heads/master e02fbf89d -> e417eea9b


Avoid running tests on java6 as checkstyle no longer supports java6


Project: http://git-wip-us.apache.org/repos/asf/buildr/repo
Commit: http://git-wip-us.apache.org/repos/asf/buildr/commit/e417eea9
Tree: http://git-wip-us.apache.org/repos/asf/buildr/tree/e417eea9
Diff: http://git-wip-us.apache.org/repos/asf/buildr/diff/e417eea9

Branch: refs/heads/master
Commit: e417eea9b751d56831130285a732ed4fce1aaaba
Parents: e02fbf8
Author: Peter Donald <[email protected]>
Authored: Sat Jun 6 10:38:45 2015 +1000
Committer: Peter Donald <[email protected]>
Committed: Sat Jun 6 10:38:45 2015 +1000

----------------------------------------------------------------------
 spec/addon/checkstyle_spec.rb | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/buildr/blob/e417eea9/spec/addon/checkstyle_spec.rb
----------------------------------------------------------------------
diff --git a/spec/addon/checkstyle_spec.rb b/spec/addon/checkstyle_spec.rb
index a8a5d3f..29f1966 100644
--- a/spec/addon/checkstyle_spec.rb
+++ b/spec/addon/checkstyle_spec.rb
@@ -14,6 +14,8 @@
 # the License.
 
 require File.expand_path('../spec_helpers', File.dirname(__FILE__))
+if Java.java.lang.System.getProperty('java.runtime.version') >= '1.7'
+
 Sandbox.require_optional_extension 'buildr/checkstyle'
 artifacts(Buildr::Checkstyle::dependencies).map(&:invoke)
 
@@ -55,3 +57,4 @@ describe Buildr::Checkstyle do
   end
 
 end
+end

Reply via email to