Class: Rasper::Compiler

Inherits:
Object
  • Object
show all
Defined in:
lib/rasper/compiler.rb

Class Method Summary collapse

Class Method Details

.compile(jrxml_file, output_dir = nil) ⇒ Object



9
10
11
12
13
# File 'lib/rasper/compiler.rb', line 9

def self.compile(jrxml_file, output_dir = nil)
  output_dir ||= File.dirname(jrxml_file)
  output_file = File.join(output_dir, File.basename(jrxml_file, '.jrxml') + '.jasper')
  JasperCompileManager.compile_report_to_file(jrxml_file, output_file)
end