0
# the Rails application
0
attr_accessor :war_name
0
- # Extra configuration for web.xml/goldspike. These options are particular
0
- # to Goldspike's Rails servlet and web.xml file.
0
- # * <tt>webxml.standalone</tt> -- whether the .war file is "standalone",
0
- # meaning JRuby, all java and gem dependencies are completely embedded
0
- # in file. One of +true+ (default) or +false+.
0
- # * <tt>webxml.jruby_home</tt> -- required if standalone is false. The
0
- # directory containing the JRuby installation to use when the app is
0
- # * <tt>webxml.rails_env</tt> -- the Rails environment to use for the
0
+ # Extra configuration for web.xml. Controls how the dynamically-generated web.xml
0
+ # * <tt>webxml.jndi</tt> -- the name of one or more JNDI data sources name to be
0
+ # available to the application. Places appropriate <resource-ref> entries
0
+ # * <tt>webxml.ignored</tt> -- array of key names that will be not used to
0
+ # generate a context param. Defaults to ['jndi', 'booter']
0
+ # Any other key/value pair placed in the open structure will be dumped as a
0
+ # context parameter in the web.xml file. Some of the recognized values are:
0
+ # * <tt>webxml.rails.env</tt> -- the Rails environment to use for the
0
# running application, usually either development or production (the
0
- # * <tt>webxml.pool.maxActive</tt> -- maximum number of pooled Rails
0
- # application runtimes (default 4)
0
- # * <tt>webxml.pool.minIdle</tt> -- minimum number of pooled runtimes to
0
- # keep around during idle time (default 2)
0
- # * <tt>webxml.pool.checkInterval</tt> -- how often to check whether the
0
- # pool size is within minimum and maximum limits, in milliseconds
0
- # * <tt>webxml.pool.maxWait</tt> -- how long a waiting thread should wait
0
- # for a runtime before giving up, in milliseconds (default 30000)
0
- # * <tt>webxml.jndi</tt> -- the name of a JNDI data source name to be
0
- # available to the application
0
- # * <tt>webxml.servlet_name</tt> -- the name of the servlet to receive all
0
- # requests. One of +files+ or +rails+. Goldspike's default behavior is
0
- # to route first through the FileServlet, and if the file isn't found,
0
- # it is forwarded to the RailsServlet. Use +rails+ if your application
0
- # server is fronted by Apache or something else that will handle static
0
+ # * <tt>webxml.jruby.min.runtimes</tt> -- minimum number of pooled runtimes to
0
+ # keep around during idle time
0
+ # * <tt>webxml.jruby.max.runtimes</tt> -- maximum number of pooled Rails
0
+ # application runtimes
0
def initialize(warbler_home = WARBLER_HOME)
0
c.rails.env = "production"
0
+ c.ignored = %w(jndi booter)
0
+ params.delete 'ignored'
0
+ self.ignored.each {|k| params.delete k }
Comments
No one has commented yet.