| Class | Sprout::MXMLCCruise |
| In: |
bundles/as3/lib/sprout/tasks/mxmlc_ci.rb
|
| Parent: | MXMLCHelper |
The MXMLCCruise helper wraps up the fdb and mxmlc unit test tasks by using either a Singleton or provided ProjectModel instance.
The simple case that uses a Singleton ProjectModel:
ci :cruise
Using a specific ProjectModel instance:
project_model :model ci :cruise => :model
Configuring the proxied MXMLCTask
ci :cruise do |t|
t.link_report = 'LinkReport.rpt'
end
| kill_on_fault | [RW] |
# File bundles/as3/lib/sprout/tasks/mxmlc_ci.rb, line 24 def initialize(args, &block) super library :asunit3 mxmlc output do |t| configure_mxmlc t configure_mxmlc_application t t.debug = true t.prerequisites << :asunit3 t.source_path << model.test_dir if(model.test_width && model.test_height) t.default_size = "#{model.test_width} #{model.test_height}" end yield t if block_given? end define_fdb t = define_outer_task t.prerequisites << output t.prerequisites << player_task_name end
# File bundles/as3/lib/sprout/tasks/mxmlc_ci.rb, line 52 def create_input input = super input.gsub!(/#{input_extension}$/, "XMLRunner#{input_extension}") return input end