Index: appengine-rack/lib/appengine-rack.rb |
=================================================================== |
--- a/appengine-rack/lib/appengine-rack.rb |
+++ b/appengine-rack/lib/appengine-rack.rb |
@@ -94,7 +94,7 @@ |
end |
class RackApplication |
- attr_accessor :application, :inbound_services |
+ attr_accessor :application, :inbound_services, :precompilation_enabled |
attr_reader :version, :static_files, :resource_files, :public_root |
attr_reader :system_properties, :environment_variables |
attr_writer :ssl_enabled, :sessions_enabled |
@@ -103,6 +103,7 @@ |
@version = '1' |
@system_properties = PropertyMap[ 'os.arch' => '', |
'jruby.management.enabled' => false, |
+ # 'jruby.compile.lazyHandles' => true, |
'jruby.rack.input.rewindable' => false ] |
@environment_variables = EnvVarMap.new |
@static_files = Resources.new |
@@ -121,6 +122,10 @@ |
@ssl_enabled |
end |
+ def precompilation_enabled? |
+ @precompilation_enabled |
+ end |
+ |
def public_root=(root) |
root = "/#{root}".squeeze '/' |
root = nil if root.eql? '/' |
@@ -155,6 +160,9 @@ |
end |
if ssl_enabled? |
xml.add_element('ssl-enabled').add_text('true') |
+ end |
+ if precompilation_enabled? |
+ xml.add_element('precompilation-enabled').add_text('true') |
end |
unless @inbound_services.empty? |
services = xml.add_element('inbound-services') |