Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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...
commit 8f684af53b60ba1df19af80e823bb9c3088a4239 1 parent bf2ac43
@simongregory simongregory authored
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
Please sign in to comment.
Something went wrong with that request. Please try again.