Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(8)

Unified Diff: appengine-rack/lib/appengine-rack.rb

Issue 129078: add support for precompilation-enabled (Closed)
Patch Set: move the java files Created 14 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « appengine-rack/Rakefile ('k') | appengine-sdk/appengine-sdk.erb » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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')
« no previous file with comments | « appengine-rack/Rakefile ('k') | appengine-sdk/appengine-sdk.erb » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b