Class: Rake::JavaExtensionTask

Inherits:
BaseExtensionTask show all
Defined in:
lib/rake/javaextensiontask.rb

Instance Attribute Summary collapse

Attributes inherited from BaseExtensionTask

#config_options, #ext_dir, #extra_options, #gem_spec, #lib_dir, #name, #source_pattern, #tmp_dir

Instance Method Summary collapse

Methods inherited from BaseExtensionTask

#initialize

Constructor Details

This class inherits a constructor from Rake::BaseExtensionTask

Instance Attribute Details

#classpathObject

Returns the value of attribute classpath


11
12
13
# File 'lib/rake/javaextensiontask.rb', line 11

def classpath
  @classpath
end

#debugObject

Returns the value of attribute debug


12
13
14
# File 'lib/rake/javaextensiontask.rb', line 12

def debug
  @debug
end

#encodingObject

Returns the value of attribute encoding


20
21
22
# File 'lib/rake/javaextensiontask.rb', line 20

def encoding
  @encoding
end

#lint_optionObject

Specify lint option


23
24
25
# File 'lib/rake/javaextensiontask.rb', line 23

def lint_option
  @lint_option
end

#source_versionObject

Provide source compatibility with specified release


15
16
17
# File 'lib/rake/javaextensiontask.rb', line 15

def source_version
  @source_version
end

#target_versionObject

Generate class files for specific VM version


18
19
20
# File 'lib/rake/javaextensiontask.rb', line 18

def target_version
  @target_version
end

Instance Method Details

#defineObject


45
46
47
48
49
# File 'lib/rake/javaextensiontask.rb', line 45

def define
  super

  define_java_platform_tasks
end

#init(name = nil, gem_spec = nil) ⇒ Object


33
34
35
36
37
38
39
40
41
42
43
# File 'lib/rake/javaextensiontask.rb', line 33

def init(name = nil, gem_spec = nil)
  super
  @source_pattern = '**/*.java'
  @classpath      = nil
  @debug          = false
  @source_version = '1.7'
  @target_version = '1.7'
  @encoding       = nil
  @java_compiling = nil
  @lint_option    = nil
end

#java_compiling(&block) ⇒ Object


29
30
31
# File 'lib/rake/javaextensiontask.rb', line 29

def java_compiling(&block)
  @java_compiling = block if block_given?
end

#platformObject


25
26
27
# File 'lib/rake/javaextensiontask.rb', line 25

def platform
  @platform ||= 'java'
end