lib/rake/delphi/androidmanifest.rb in rake-delphi-0.0.20 vs lib/rake/delphi/androidmanifest.rb in rake-delphi-0.0.21

- old
+ new

@@ -7,13 +7,14 @@ require 'rake/common/chdirtask' module Rake module Delphi class AndroidManifestInfo + attr_accessor :version + def initialize(owner) @owner = owner - @version = '1.3.2.4' end def get_binding binding end @@ -40,9 +41,12 @@ def execute(args = nil) super paclientTaskName = name.gsub(/:manifest$/, '') @dccTask = application[paclientTaskName].dccTask + projectTaskName = @dccTask.name.gsub(/:dcc32$/, '') + projectTask = application[projectTaskName] + @template_obj.version = projectTask.properties[:version] ChDir.new(self, File.dirname(@dccTask.dpr)) do |dir| RakeFileUtils.verbose(Logger.debug?) do erb = ERB.new(IO.read(@template)) text = erb.result(@template_obj.get_binding) File.open(@output, 'w') do |f|