Class: Buildr::XMLBeans::CompileTask

Inherits:
Rake::FileTask
  • Object
show all
Defined in:
lib/java/xmlbeans.rb

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ CompileTask

Returns a new instance of CompileTask.



40
41
42
43
44
45
# File 'lib/java/xmlbeans.rb', line 40

def initialize(*args)
  super
  enhance do |task|
    XMLBeans.compile *task.prerequisites + [options.merge(:output=>task.name)]
  end
end

Instance Method Details

#optionsObject



47
48
49
# File 'lib/java/xmlbeans.rb', line 47

def options()
  @options ||= {}
end

#using(options) ⇒ Object



51
52
53
54
# File 'lib/java/xmlbeans.rb', line 51

def using(options)
  self.options.merge!(options)
  self
end