Class: Buildr::Project

Inherits:
Object
  • Object
show all
Includes:
AS3::Doc::AsDoc, AS3::IDE::FDT4::Tasks, AS3::Packaging, AS3::Toolkits::ApparatTasks
Defined in:
lib/buildr/as3/ide/fdt4.rb,
lib/buildr/as3/packaging.rb,
lib/buildr/as3/toolkits/apparat.rb,
lib/buildr/as3/project.rb,
lib/buildr/as3/doc.rb

Instance Method Summary collapse

Methods included from AS3::Toolkits::ApparatTasks

#apparat_reducer, #apparat_tdsi

Methods included from AS3::Packaging

#package_air, #package_airi, #package_swc, #package_swf

Methods included from AS3::IDE::FDT4::Tasks

#create_fdt4_dependency_symlink, #get_eclipse_relative_path, #get_fdt4_classpath_type

Instance Method Details

#get_as3_output(is_test = false) ⇒ Object



27
28
29
30
31
32
33
34
35
# File 'lib/buildr/as3/project.rb', line 27

def get_as3_output( is_test = false )
  compile_task = is_test ? test.compile : compile
  target = compile_task.target
  options = compile_task.options
  return compile_task.options[:output] if compile_task.options.has_key? :output
  return "#{target}/#{File.basename(options[:main].to_s, File.extname(options[:main].to_s))}.swf" if compile_task.packaging == :swf
  return "#{target}/#{name.gsub(":", "-")}.swc" if compile_task.packaging == :swc
  fail("Could not guess output file for #{name}")
end