class Closure::Compiler
def compile_files(files)
resulting JavaScript as a string or yields an IO object containing the
Takes an array of javascript file paths or a single path. Returns the
def compile_files(files) @options.merge!(:js => files) begin redirect_stderr = "2>&1" if !Gem.win_platform? result = `#{command} #{redirect_stderr}` rescue Exception raise Error, "compression failed: #{result}" end unless $?.exitstatus.zero? raise Error, result end yield(StringIO.new(result)) if block_given? result end