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, #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

#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



38
39
40
41
42
# File 'lib/rake/javaextensiontask.rb', line 38

def define
  super

  define_java_platform_tasks
end

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



28
29
30
31
32
33
34
35
36
# File 'lib/rake/javaextensiontask.rb', line 28

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

#java_compiling(&block) ⇒ Object



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

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

#platformObject



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

def platform
  @platform ||= 'java'
end