36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
# File 'lib/tasks/swfmill.rb', line 36
def define
super
if(@input.nil?)
raise SWFMillError.new('SWFMill task requires that input be set')
end
if(@output.nil?)
raise SWFMillError.new('SWFMill task requires that output be set')
end
if(File.directory?(input))
@input = define_xml_task(input).xml_file
end
file input
file output => input do |f|
cleaned_options = []
option_list.each do |item|
cleaned_options << clean_path(item)
end
execute(cleaned_options.join(' '))
end
desc "#{name} using SWFMill"
task name => [input, output]
CLEAN.add(output)
self
end
|