Class: Rake::JavaExtensionTask
- Inherits:
-
BaseExtensionTask
- Object
- TaskLib
- BaseExtensionTask
- Rake::JavaExtensionTask
- Defined in:
- lib/rake/javaextensiontask.rb
Instance Attribute Summary collapse
-
#classpath ⇒ Object
Returns the value of attribute classpath.
-
#debug ⇒ Object
Returns the value of attribute debug.
-
#encoding ⇒ Object
Returns the value of attribute encoding.
-
#lint_option ⇒ Object
Specify lint option.
-
#release ⇒ Object
Compile for oldeer platform version.
-
#source_version ⇒ Object
Provide source compatibility with specified release.
-
#target_version ⇒ Object
Generate class files for specific VM version.
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
- #define ⇒ Object
- #init(name = nil, gem_spec = nil) ⇒ Object
- #java_compiling(&block) ⇒ Object
- #platform ⇒ Object
Methods inherited from BaseExtensionTask
Constructor Details
This class inherits a constructor from Rake::BaseExtensionTask
Instance Attribute Details
#classpath ⇒ Object
Returns the value of attribute classpath.
11 12 13 |
# File 'lib/rake/javaextensiontask.rb', line 11 def classpath @classpath end |
#debug ⇒ Object
Returns the value of attribute debug.
12 13 14 |
# File 'lib/rake/javaextensiontask.rb', line 12 def debug @debug end |
#encoding ⇒ Object
Returns the value of attribute encoding.
23 24 25 |
# File 'lib/rake/javaextensiontask.rb', line 23 def encoding @encoding end |
#lint_option ⇒ Object
Specify lint option
26 27 28 |
# File 'lib/rake/javaextensiontask.rb', line 26 def lint_option @lint_option end |
#release ⇒ Object
Compile for oldeer platform version
21 22 23 |
# File 'lib/rake/javaextensiontask.rb', line 21 def release @release end |
#source_version ⇒ Object
Provide source compatibility with specified release
15 16 17 |
# File 'lib/rake/javaextensiontask.rb', line 15 def source_version @source_version end |
#target_version ⇒ Object
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
#define ⇒ Object
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 |
#platform ⇒ Object
28 29 30 |
# File 'lib/rake/javaextensiontask.rb', line 28 def platform @platform ||= 'java' end |