Sha256: e6df3951da23210790c6526bd533d744595676d14b9f898bddf5465a64041e3b

Contents?: true

Size: 597 Bytes

Versions: 1

Compression:

Stored size: 597 Bytes

Contents

require 'rake_helpers/rsl_manager'

class RSLCopyTask < Rake::Task
  attr_accessor :source_dir, :output_dir, :rsls

  def execute(*args)
    super
    do_copy
  end

  def do_copy
    if defined?(flex_config)
      self.source_dir ||= flex_config.flex_sdk_path
      self.output_dir ||= File.join(flex_config.swf_output_path, 'rsls')
    end

    rsls ||=  %w(framework_3.4.0.9271.swz
                 framework_3.4.0.9271.swf
                 datavisualization_3.4.0.9271.swz
                 datavisualization_3.4.0.9271.swf)
    RSLManager.new.copy_rsls(source_dir, output_dir, *rsls)
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
moneypools-rake_helpers-0.1.0 lib/rake_helpers/tasks/rsl.rb