Class: Buildr::AS3::Packaging::SwcTask

Inherits:
Rake::FileTask
  • Object
show all
Includes:
Compiler::CompilerUtils, Extension
Defined in:
lib/buildr/as3/packaging.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Compiler::CompilerUtils

#append_args, #get_last_modified, get_output, #is_output_outdated?, #move_dependency_dirs_to_source, #older, #reserved_options, #timestamp_from_file

Constructor Details

#initialize(*args) ⇒ SwcTask

:nodoc:



36
37
38
39
40
41
42
# File 'lib/buildr/as3/packaging.rb', line 36

def initialize(*args) #:nodoc:
  super
  enhance do
    fail "File not found: #{src_swc}" unless File.exists? src_swc
    File.copy(src_swc, target_swc)
  end
end

Instance Attribute Details

#src_swcObject

Returns the value of attribute src_swc.



34
35
36
# File 'lib/buildr/as3/packaging.rb', line 34

def src_swc
  @src_swc
end

#target_swcObject

Returns the value of attribute target_swc.



34
35
36
# File 'lib/buildr/as3/packaging.rb', line 34

def target_swc
  @target_swc
end

Instance Method Details

#needed?Boolean

Returns:

  • (Boolean)


44
45
46
# File 'lib/buildr/as3/packaging.rb', line 44

def needed?
  is_output_outdated? target_swc, src_swc
end