lib/jruby-warck/constants.rb in jruby-warck-1.2.1 vs lib/jruby-warck/constants.rb in jruby-warck-1.2.2

- old
+ new

@@ -5,10 +5,11 @@ module Constants HOME = File.expand_path(File.dirname(__FILE__) + '/../..') unless defined?(HOME) ADDITIONAL_CLASSPATH = FileList[IO.readlines(Dir.pwd + "/cp.entries").map(&:chomp).reject { |line| line.each_char.first == "#" }] rescue FileList[] + CLASSPATH = "Class-Path: /opt/jruby/lib/jruby-complete/jruby-complete.jar#{ADDITIONAL_CLASSPATH}".scan(/.{70}/).join("\n ") WEB_XML = <<-XML <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd"> @@ -35,10 +36,10 @@ MANIFEST_MF = <<-MANIFEST Manifest-Version: 1.0 Created-By: jruby-warck Main-Class: org.jruby.JarBootstrapMain -Class-Path: /opt/jruby/lib/jruby-complete/jruby-complete.jar #{ADDITIONAL_CLASSPATH} +#{CLASSPATH} MANIFEST INIT = <<-_INIT # rack.version: #{JRuby::Rack::VERSION} _INIT