lib/target.rb in distil-0.8.0 vs lib/target.rb in distil-0.8.1

- old
+ new

@@ -6,14 +6,14 @@ option :tasks, Array def initialize(name, settings, project) super(settings, project) - + + @@current= self @project= project @target_name= name - @@current= self @tasks= [] @extras.each { |task_name, task_settings| next if (tasks && !tasks.include?(task_name)) @@ -23,10 +23,11 @@ @warning_count=0 @error_count=0 end + @@current=nil def self.current @@current end def error(message, file="", line_number=0) @@ -54,21 +55,9 @@ products.concat(task.products) } products end - def find_file(file) - external_projects.each { |project| - path= File.expand_path(File.join(project["include"], file)) - if (File.exists?(path)) - source_file= SourceFile.from_path(path) - source_file.file_path= file - return source_file - end - } - nil - end - def process_files @tasks.each { |t| t.find_files next if !t.need_to_build