warble.rb 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  1. # Disable Rake-environment-task framework detection by uncommenting/setting to false
  2. # Warbler.framework_detection = false
  3. # Warbler web application assembly configuration file
  4. Warbler::Config.new do |config|
  5. # Features: additional options controlling how the jar is built.
  6. # Currently the following features are supported:
  7. # - gemjar: package the gem repository in a jar file in WEB-INF/lib
  8. # - executable: embed a web server and make the war executable
  9. # - compiled: compile .rb files to .class files
  10. # config.features = %w(gemjar)
  11. # Application directories to be included in the webapp.
  12. config.dirs = %w(app config lib log vendor tmp views)
  13. # Additional files/directories to include, above those in config.dirs
  14. # config.includes = FileList["hello_world.rb"]
  15. # Additional files/directories to exclude
  16. # config.excludes = FileList["lib/tasks/*"]
  17. # Additional Java .jar files to include. Note that if .jar files are placed
  18. # in lib (and not otherwise excluded) then they need not be mentioned here.
  19. # JRuby and JRuby-Rack are pre-loaded in this list. Be sure to include your
  20. # own versions if you directly set the value
  21. # config.java_libs += FileList["lib/java/*.jar"]
  22. # Loose Java classes and miscellaneous files to be included.
  23. # config.java_classes = FileList["target/classes/**.*"]
  24. # One or more pathmaps defining how the java classes should be copied into
  25. # the archive. The example pathmap below accompanies the java_classes
  26. # configuration above. See http://rake.rubyforge.org/classes/String.html#M000017
  27. # for details of how to specify a pathmap.
  28. # config.pathmaps.java_classes << "%{target/classes/,}p"
  29. # Bundler support is built-in. If Warbler finds a Gemfile in the
  30. # project directory, it will be used to collect the gems to bundle
  31. # in your application. If you wish to explicitly disable this
  32. # functionality, uncomment here.
  33. # config.bundler = false
  34. # An array of Bundler groups to avoid including in the war file.
  35. # Defaults to ["development", "test"].
  36. # config.bundle_without = []
  37. # Other gems to be included. If you don't use Bundler or a gemspec
  38. # file, you need to tell Warbler which gems your application needs
  39. # so that they can be packaged in the archive.
  40. # For Rails applications, the Rails gems are included by default
  41. # unless the vendor/rails directory is present.
  42. # config.gems += ["activerecord-jdbcmysql-adapter", "jruby-openssl"]
  43. # config.gems << "tzinfo"
  44. # Uncomment this if you don't want to package rails gem.
  45. # config.gems -= ["rails"]
  46. # The most recent versions of gems are used.
  47. # You can specify versions of gems by using a hash assignment:
  48. # config.gems["rails"] = "2.3.10"
  49. # You can also use regexps or Gem::Dependency objects for flexibility or
  50. # finer-grained control.
  51. # config.gems << /^merb-/
  52. # config.gems << Gem::Dependency.new("merb-core", "= 0.9.3")
  53. # Include gem dependencies not mentioned specifically. Default is
  54. # true, uncomment to turn off.
  55. # config.gem_dependencies = false
  56. # Array of regular expressions matching relative paths in gems to be
  57. # excluded from the war. Defaults to empty, but you can set it like
  58. # below, which excludes test files.
  59. # config.gem_excludes = [/^(test|spec)\//]
  60. # Pathmaps for controlling how application files are copied into the archive
  61. # config.pathmaps.application = ["WEB-INF/%p"]
  62. # Name of the archive (without the extension). Defaults to the basename
  63. # of the project directory.
  64. # config.jar_name = "mywar"
  65. # Name of the MANIFEST.MF template for the war file. Defaults to a simple
  66. # MANIFEST.MF that contains the version of Warbler used to create the war file.
  67. # config.manifest_file = "config/MANIFEST.MF"
  68. # When using the 'compiled' feature and specified, only these Ruby
  69. # files will be compiled. Default is to compile all \.rb files in
  70. # the application.
  71. # config.compiled_ruby_files = FileList['app/**/*.rb']
  72. # === War files only below here ===
  73. # Path to the pre-bundled gem directory inside the war file. Default
  74. # is 'WEB-INF/gems'. Specify path if gems are already bundled
  75. # before running Warbler. This also sets 'gem.path' inside web.xml.
  76. # config.gem_path = "WEB-INF/vendor/bundler_gems"
  77. # Files for WEB-INF directory (next to web.xml). This contains
  78. # web.xml by default. If there is an .erb-File it will be processed
  79. # with webxml-config. You may want to exclude this file via
  80. # config.excludes.
  81. config.webinf_files += FileList["resin-web.xml"]
  82. # Files to be included in the root of the webapp. Note that files in public
  83. # will have the leading 'public/' part of the path stripped during staging.
  84. # config.public_html = FileList["public/**/*", "doc/**/*"]
  85. # Pathmaps for controlling how public HTML files are copied into the .war
  86. # config.pathmaps.public_html = ["%{public/,}p"]
  87. # Embedded webserver to use with the 'executable' feature. Currently supported
  88. # webservers are:
  89. # * <tt>winstone</tt> (default) - Winstone 0.9.10 from sourceforge
  90. # * <tt>jenkins-ci.winstone</tt> - Improved Winstone from Jenkins CI
  91. # * <tt>jetty</tt> - Embedded Jetty from Eclipse
  92. # config.webserver = 'jetty'
  93. # Value of RAILS_ENV for the webapp -- default as shown below
  94. # config.webxml.rails.env = ENV['RAILS_ENV'] || 'production'
  95. # Application booter to use, one of :rack, :rails, or :merb (autodetected by default)
  96. # config.webxml.booter = :rails
  97. # Set JRuby to run in 1.9 mode.
  98. # config.webxml.jruby.compat.version = "1.9"
  99. # When using the :rack booter, "Rackup" script to use.
  100. # - For 'rackup.path', the value points to the location of the rackup
  101. # script in the web archive file. You need to make sure this file
  102. # gets included in the war, possibly by adding it to config.includes
  103. # or config.webinf_files above.
  104. # - For 'rackup', the rackup script you provide as an inline string
  105. # is simply embedded in web.xml.
  106. # The script is evaluated in a Rack::Builder to load the application.
  107. # Examples:
  108. # config.webxml.rackup.path = 'WEB-INF/hello.ru'
  109. # config.webxml.rackup = %{require './lib/demo'; run Rack::Adapter::Camping.new(Demo)}
  110. # config.webxml.rackup = require 'cgi' && CGI::escapeHTML(File.read("config.ru"))
  111. # Control the pool of Rails runtimes. Leaving unspecified means
  112. # the pool will grow as needed to service requests. It is recommended
  113. # that you fix these values when running a production server!
  114. # If you're using threadsafe! mode, you probably don't want to set these values,
  115. # since 1 runtime(default for threadsafe mode) will be enough.
  116. # config.webxml.jruby.min.runtimes = 24
  117. # config.webxml.jruby.max.runtimes = 24
  118. # JNDI data source name
  119. # config.webxml.jndi = 'jdbc/rails'
  120. end