lib/rake/delphi/resources.rb in rake-delphi-0.0.7 vs lib/rake/delphi/resources.rb in rake-delphi-0.0.8

- old
+ new

@@ -84,10 +84,11 @@ def []=(key, value) @template_obj[key] = value end def execute(args=nil) + super erb = ERB.new(IO.read(@template_file)) text = erb.result(@template_obj.get_binding) File.open(@output, 'w') do |f| f.write(text) end @@ -120,9 +121,10 @@ end return is_main_icon end def execute(args=nil) + super v, path, tool = RCResourceCompiler.find(true) a = [] a << '/dRC' if @is_rc a << '/dMAIN_ICON' if is_main_icon a |= ['/fo', Rake.quotepath('', output), '/r', Rake.quotepath('', input) ]