lib/casper_reports.rb in casperreports-0.0.3 vs lib/casper_reports.rb in casperreports-0.0.4
- old
+ new
@@ -14,10 +14,11 @@
# Requirements
# This Gem requires jruby > 1.6.0
require 'java'
# Load Jar and Java Classes
+$CLASSPATH << File.join(File.dirname(__FILE__), '..', 'include', 'lib', 'poi-3.6.jar')
$CLASSPATH << File.join(File.dirname(__FILE__), '..', 'include', 'lib', 'commons-digester-1.7.jar')
$CLASSPATH << File.join(File.dirname(__FILE__), '..', 'include', 'lib', 'commons-logging-1.1.1.jar')
$CLASSPATH << File.join(File.dirname(__FILE__), '..', 'include', 'lib', 'commons-collections-2.1.1.jar')
$CLASSPATH << File.join(File.dirname(__FILE__), '..', 'include', 'lib', 'commons-beanutils-1.8.0.jar')
$CLASSPATH << File.join(File.dirname(__FILE__), '..', 'include', 'lib', 'groovy-all-1.7.5.jar')
@@ -26,12 +27,11 @@
$CLASSPATH << File.join(File.dirname(__FILE__), '..', 'include', 'dist', 'jasperreports-4.0.1.jar')
$CLASSPATH << File.join(File.dirname(__FILE__), '..', 'include')
# Provide a simple class interface to running a jasper report
class CasperReports
- #VERSION = '0.0.1'
- def compile(jrxml, data, xpath)
- String.from_java_bytes(Java::XmlDataReportProducer.compile(jrxml, data, xpath))
+ def compile(jrxml, data, xpath, type)
+ String.from_java_bytes(Java::XmlDataReportProducer.compile(jrxml, data, xpath, type))
end
end
\ No newline at end of file