Class: Buildr::TestFramework::Java

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

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)


28
29
30
# File 'lib/buildr/java/tests.rb', line 28

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

.dependenciesObject



32
33
34
35
36
37
38
39
# File 'lib/buildr/java/tests.rb', line 32

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