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



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

def encoding
  @encoding
end

#lint_optionObject

Specify lint option



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

def lint_option
  @lint_option
end

#releaseObject

Compile for oldeer platform version



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

def release
  @release
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



49
50
51
52
53
# File 'lib/rake/javaextensiontask.rb', line 49

def define
  super

  define_java_platform_tasks
end

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



36
37
38
39
40
41
42
43
44
45
46
47
# File 'lib/rake/javaextensiontask.rb', line 36

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

#java_compiling(&block) ⇒ Object



32
33
34
# File 'lib/rake/javaextensiontask.rb', line 32

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

#platformObject



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

def platform
  @platform ||= 'java'
end