Class: Pangolin::Javac

Inherits:
Object
  • Object
show all
Includes:
JavacCommon
Defined in:
lib/pangolin/exec/javac.rb,
lib/pangolin/java/javac.rb

Constant Summary

Constants included from Output::Formatting

Output::Formatting::FORMATTING, Output::Formatting::FORMATTING_OFF

Instance Attribute Summary

Attributes included from JavacCommon

#class_path, #colorize, #deprecation_warnings, #destination, #encoding, #lint, #max_errors, #max_warnings, #source_files, #source_path, #verbose, #warnings

Instance Method Summary collapse

Methods included from JavacCommon

#command_args, #execute, #format_output, #formatted_path, #initialize, #lint_flags

Methods included from Output::Formatting

#format_error, #format_error_header, #format_header, #format_stack_trace, #format_text, #format_warning_header

Instance Method Details

#execute_compiler(io) ⇒ Object



7
8
9
10
11
12
13
# File 'lib/pangolin/exec/javac.rb', line 7

def execute_compiler(io)
  output = %x(javac #{command_args.join(' ')} 2>&1)
  
  io.puts(format_output(output))
  
  $?.success?
end