Class: JavaTask

Inherits:
Object
  • Object
show all
Defined in:
lib/jake/java_task.rb

Direct Known Subclasses

Ajc, Jar, Javac, Manifest, UnJar

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#base_dirObject

Returns the value of attribute base_dir.



2
3
4
# File 'lib/jake/java_task.rb', line 2

def base_dir
  @base_dir
end

Class Method Details

.in(base_dir = '.') ⇒ Object



4
5
6
# File 'lib/jake/java_task.rb', line 4

def self.in(base_dir = '.')
  self.new(base_dir)
end

Instance Method Details

#execute {|_self| ... } ⇒ Object

Yields:

  • (_self)

Yield Parameters:

  • _self (JavaTask)

    the object that the method was called on



8
9
10
11
12
13
14
# File 'lib/jake/java_task.rb', line 8

def execute &block
  yield self

  in_path @base_dir do
    command
  end
end