Sha256: 1245e664832bca5d6d739347fa28535192f98332e28f4ec32db0383b1a4ca045
Contents?: true
Size: 901 Bytes
Versions: 1
Compression:
Stored size: 901 Bytes
Contents
libdir = File.dirname(File.expand_path(__FILE__)) extdir = File.join(libdir, 'ext') $CLASSPATH << libdir Dir["#{extdir}/java/*.jar"].each do |jar| # JRuby includes all the openssl stuff from 1.7.3 onwards unless JRUBY_VERSION >= '1.7.3' && /bcprov-jdk15\.jar/ =~ jar require jar end end platform = '' if java.lang.System.get_property('os.name').downcase.include?('linux') p 'Using JAI & Java ImageIO native extensions' platform << '/linux' platform << if java.lang.System.get_property('os.arch').end_with?('64') '-amd64' else '-i586' end ENV['JAIHOME'] = extdir + platform # ld_library_path is bad: http://xahlee.info/UnixResource_dir/_/ldpath.html ENV['LD_RUN_PATH'] = ENV['JAIHOME'] $CLASSPATH << ENV['JAIHOME'] require "ext#{platform}/mlibwrapper_jai.jar" require "ext#{platform}/clibwrapper_jiio.jar" end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
trantor-pdf-converter-0.1.3-java | lib/pdfconverter.rb |