Browse files

Changing the ADL's association from a file task to a normal task so i…

…t always runs when invoked.
  • Loading branch information...
1 parent bf2ac43 commit 8f684af53b60ba1df19af80e823bb9c3088a4239 @simongregory simongregory committed Dec 15, 2011
Showing with 19 additions and 0 deletions.
  1. +19 −0 lib/flashsdk/adl.rb
View
19 lib/flashsdk/adl.rb
@@ -42,6 +42,25 @@ class ADL < Sprout::Executable::Base
# The default prefix
#
set :default_prefix, '-'
+
+ ##
+ # Overide the default task creation so
+ # adl will run regardless of a file product.
+ #
+ def create_outer_task *args
+ Rake::Task.define_task(*args) do
+ execute
+ end
+ end
+
+ ##
+ # Overide the default behaviour to stop the file product
+ # being added to to the CLEAN task.
+ #
+ def update_rake_task_name_from_args *args
+ self.rake_task_name = parse_rake_task_arg args.last
+ self.rake_task_name
+ end
end
end

0 comments on commit 8f684af

Please sign in to comment.