44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
|
# File 'lib/tasks/mxmlc.rb', line 44
def define
@external_library_path = add_path_list(@external_library_path) if @external_library_path.size > 0
@library_path = add_path_list(@library_path) if @library_path.size > 0
@source_path = add_path_list(@source_path) if @source_path.size > 0
@theme.collect do |item|
file item
file @output => item
end
if(!@input.nil?)
add_path(File.dirname(@input))
end
file @output do |t|
execute(@target, option_list.join(' '))
end
CLEAN.add(@output)
if(@incremental)
CLEAN.add(FileList['**/**/*.cache'])
end
desc "Compile #{@name} using MXMLC"
task @name => [@output]
end
|