Class: Buildr::TestFramework::Java

Inherits:
Base show all
Defined in:
lib/buildr/java/tests.rb

Overview

:nodoc:

Instance Attribute Summary

Attributes inherited from Base

#options, #task

Class Method Summary collapse

Methods inherited from Base

#dependencies, #initialize, #run, #tests, to_sym

Constructor Details

This class inherits a constructor from Buildr::TestFramework::Base

Class Method Details

.applies_to?(project) ⇒ Boolean

:nodoc:

Returns:

  • (Boolean)


23
24
25
# File 'lib/buildr/java/tests.rb', line 23

def applies_to?(project) #:nodoc:
  project.test.compile.language == :java || project.test.compile.language == :groovy
end

.dependenciesObject



27
28
29
30
31
32
33
34
# File 'lib/buildr/java/tests.rb', line 27

def dependencies
  unless @dependencies
    super
    # Add buildr utility classes (e.g. JavaTestFilter)
    @dependencies |= [ File.join(File.dirname(__FILE__)) ]
  end
  @dependencies
end