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.
-
#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, #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.
9 10 11 |
# File 'lib/rake/javaextensiontask.rb', line 9 def classpath @classpath end |
#debug ⇒ Object
Returns the value of attribute debug.
10 11 12 |
# File 'lib/rake/javaextensiontask.rb', line 10 def debug @debug end |
#source_version ⇒ Object
Provide source compatibility with specified release
13 14 15 |
# File 'lib/rake/javaextensiontask.rb', line 13 def source_version @source_version end |
#target_version ⇒ Object
Generate class files for specific VM version
16 17 18 |
# File 'lib/rake/javaextensiontask.rb', line 16 def target_version @target_version end |
Instance Method Details
#define ⇒ Object
36 37 38 39 40 |
# File 'lib/rake/javaextensiontask.rb', line 36 def define super define_java_platform_tasks end |
#init(name = nil, gem_spec = nil) ⇒ Object
26 27 28 29 30 31 32 33 34 |
# File 'lib/rake/javaextensiontask.rb', line 26 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
22 23 24 |
# File 'lib/rake/javaextensiontask.rb', line 22 def java_compiling(&block) @java_compiling = block if block_given? end |
#platform ⇒ Object
18 19 20 |
# File 'lib/rake/javaextensiontask.rb', line 18 def platform @platform ||= 'java' end |