lib/sprout/tasks/mxmlc_flex_builder.rb in sprout-as3-bundle-0.2.1 vs lib/sprout/tasks/mxmlc_flex_builder.rb in sprout-as3-bundle-0.2.2
- old
+ new
@@ -4,10 +4,11 @@
PROJECT = '.project'
ACTION_SCRIPT_PROPERTIES = '.actionScriptProperties'
def initialize(args, &block)
super
+ outer_task = task args => [PROJECT, ACTION_SCRIPT_PROPERTIES]
t = file PROJECT do |t|
File.open(t.name, 'w') do |file|
file.write t.to_xml
end
@@ -18,11 +19,11 @@
File.open(t.name, 'w') do |file|
file.write t.to_xml
end
end
configure_action_script_properties t
-
- task args => [PROJECT, ACTION_SCRIPT_PROPERTIES]
+
+ return outer_task
end
def configure_project_task(project_task)
def project_task.xml=(str)
@xml = str