Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 184 lines (144 sloc) 8.124 kb
48cb971 @nicksieger Reorganize warble.rb template to have a war-only section
nicksieger authored
1 # Disable Rake-environment-task framework detection by uncommenting/setting to false
81fc974 @nicksieger Add ability to turn off framework detection; update history file
nicksieger authored
2 # Warbler.framework_detection = false
3
b5a28d3 @nicksieger Initial revision of warbler, not quite finished, but close
nicksieger authored
4 # Warbler web application assembly configuration file
5 Warbler::Config.new do |config|
79ee189 @nicksieger Add config.features for specifying things like `gemjar' in config/war…
nicksieger authored
6 # Features: additional options controlling how the jar is built.
7 # Currently the following features are supported:
8 # - gemjar: package the gem repository in a jar file in WEB-INF/lib
48cb971 @nicksieger Reorganize warble.rb template to have a war-only section
nicksieger authored
9 # - executable: embed a web server and make the war executable
10 # - compiled: compile .rb files to .class files
79ee189 @nicksieger Add config.features for specifying things like `gemjar' in config/war…
nicksieger authored
11 # config.features = %w(gemjar)
12
b5a28d3 @nicksieger Initial revision of warbler, not quite finished, but close
nicksieger authored
13 # Application directories to be included in the webapp.
98200f1 @jkutner added script to example config.dirs because it's part of the defaults
jkutner authored
14 # config.dirs = %w(app config db lib log script vendor tmp)
b5a28d3 @nicksieger Initial revision of warbler, not quite finished, but close
nicksieger authored
15
16 # Additional files/directories to include, above those in config.dirs
17 # config.includes = FileList["db"]
18
19 # Additional files/directories to exclude
20 # config.excludes = FileList["lib/tasks/*"]
21
22 # Additional Java .jar files to include. Note that if .jar files are placed
a8d5ad6 @nicksieger Revamp config preparing for jruby-rack switch
nicksieger authored
23 # in lib (and not otherwise excluded) then they need not be mentioned here.
24 # JRuby and JRuby-Rack are pre-loaded in this list. Be sure to include your
b95833b @nicksieger Updated config documentation
nicksieger authored
25 # own versions if you directly set the value
26 # config.java_libs += FileList["lib/java/*.jar"]
b5a28d3 @nicksieger Initial revision of warbler, not quite finished, but close
nicksieger authored
27
48cb971 @nicksieger Reorganize warble.rb template to have a war-only section
nicksieger authored
28 # Loose Java classes and miscellaneous files to be included.
07e3cb7 @nicksieger - Upgrade to JRuby 1.0.2
nicksieger authored
29 # config.java_classes = FileList["target/classes/**.*"]
30
31 # One or more pathmaps defining how the java classes should be copied into
48cb971 @nicksieger Reorganize warble.rb template to have a war-only section
nicksieger authored
32 # the archive. The example pathmap below accompanies the java_classes
ae41256 @nicksieger Complete transition to pathmaps for configuring the war layout
nicksieger authored
33 # configuration above. See http://rake.rubyforge.org/classes/String.html#M000017
34 # for details of how to specify a pathmap.
02ed0e5 @nicksieger Sample java_classes pathmap should be full path, suggestion from Tim …
nicksieger authored
35 # config.pathmaps.java_classes << "%{target/classes/,}p"
07e3cb7 @nicksieger - Upgrade to JRuby 1.0.2
nicksieger authored
36
d751b13 @nicksieger Bundler support
nicksieger authored
37 # Bundler support is built-in. If Warbler finds a Gemfile in the
38 # project directory, it will be used to collect the gems to bundle
39 # in your application. If you wish to explicitly disable this
40 # functionality, uncomment here.
41 # config.bundler = false
42
56651b6 @nicksieger Support bundle_without and default to excluding 'development' and 'test'
nicksieger authored
43 # An array of Bundler groups to avoid including in the war file.
37d7919 @atambo Change bundle_without to include assets group
atambo authored
44 # Defaults to ["development", "test", "assets"].
56651b6 @nicksieger Support bundle_without and default to excluding 'development' and 'test'
nicksieger authored
45 # config.bundle_without = []
46
48cb971 @nicksieger Reorganize warble.rb template to have a war-only section
nicksieger authored
47 # Other gems to be included. If you don't use Bundler or a gemspec
48 # file, you need to tell Warbler which gems your application needs
49 # so that they can be packaged in the archive.
50 # For Rails applications, the Rails gems are included by default
51 # unless the vendor/rails directory is present.
325947f @nicksieger Try to make gem configuration comments clearer (thanks VVSiz and harm…
nicksieger authored
52 # config.gems += ["activerecord-jdbcmysql-adapter", "jruby-openssl"]
b5a28d3 @nicksieger Initial revision of warbler, not quite finished, but close
nicksieger authored
53 # config.gems << "tzinfo"
325947f @nicksieger Try to make gem configuration comments clearer (thanks VVSiz and harm…
nicksieger authored
54
55 # Uncomment this if you don't want to package rails gem.
56 # config.gems -= ["rails"]
57
58 # The most recent versions of gems are used.
59 # You can specify versions of gems by using a hash assignment:
48cb971 @nicksieger Reorganize warble.rb template to have a war-only section
nicksieger authored
60 # config.gems["rails"] = "2.3.10"
b5a28d3 @nicksieger Initial revision of warbler, not quite finished, but close
nicksieger authored
61
db8ccce @nicksieger Updated history for most recent changes
nicksieger authored
62 # You can also use regexps or Gem::Dependency objects for flexibility or
48cb971 @nicksieger Reorganize warble.rb template to have a war-only section
nicksieger authored
63 # finer-grained control.
db8ccce @nicksieger Updated history for most recent changes
nicksieger authored
64 # config.gems << /^merb-/
65 # config.gems << Gem::Dependency.new("merb-core", "= 0.9.3")
66
79f86d5 @nicksieger Keep config.gem_excludes, but back away from default excludes to redu…
nicksieger authored
67 # Include gem dependencies not mentioned specifically. Default is
68 # true, uncomment to turn off.
cd34bc9 @nicksieger gem.home => gem.path
nicksieger authored
69 # config.gem_dependencies = false
ad0a8d7 @nicksieger - fix file.prefix in web.xml
nicksieger authored
70
2383264 @nicksieger Add config.gem_excludes for excluding test/spec files from the war file
nicksieger authored
71 # Array of regular expressions matching relative paths in gems to be
79f86d5 @nicksieger Keep config.gem_excludes, but back away from default excludes to redu…
nicksieger authored
72 # excluded from the war. Defaults to empty, but you can set it like
73 # below, which excludes test files.
74 # config.gem_excludes = [/^(test|spec)\//]
2383264 @nicksieger Add config.gem_excludes for excluding test/spec files from the war file
nicksieger authored
75
48cb971 @nicksieger Reorganize warble.rb template to have a war-only section
nicksieger authored
76 # Pathmaps for controlling how application files are copied into the archive
cd34bc9 @nicksieger gem.home => gem.path
nicksieger authored
77 # config.pathmaps.application = ["WEB-INF/%p"]
78
48cb971 @nicksieger Reorganize warble.rb template to have a war-only section
nicksieger authored
79 # Name of the archive (without the extension). Defaults to the basename
80 # of the project directory.
08f7d2e @nicksieger gsub(/war/, 'jar') and deprecate War class
nicksieger authored
81 # config.jar_name = "mywar"
b5a28d3 @nicksieger Initial revision of warbler, not quite finished, but close
nicksieger authored
82
26032a8 @n0nick warbler.rb: Document jar_extension, autodeploy_dir options
n0nick authored
83 # File extension for the archive. Defaults to either 'jar' or 'war'.
84 # config.jar_extension = "jar"
85
86 # Destionation for the created archive. Defaults to project's root directory.
87 # config.autodeploy_dir = "dist/"
88
03bc8e0 @nicksieger Doco tweak for warble.rb
nicksieger authored
89 # Name of the MANIFEST.MF template for the war file. Defaults to a simple
90 # MANIFEST.MF that contains the version of Warbler used to create the war file.
761de7b Add configuration option to set MANIFEST.MF.
Tommy McGuire authored
91 # config.manifest_file = "config/MANIFEST.MF"
92
0998de7 @nicksieger Bring back 'compiled_ruby_files' config option
nicksieger authored
93 # When using the 'compiled' feature and specified, only these Ruby
94 # files will be compiled. Default is to compile all \.rb files in
95 # the application.
96 # config.compiled_ruby_files = FileList['app/**/*.rb']
aeb67ef @jkutner added compile_gems to sample warble.rb file
jkutner authored
97
98 # Determines if ruby files in supporting gems will be compiled.
99 # Ignored unless compile feature is used.
100 # config.compile_gems = false
101
c81ff4f @fabn Added commented option to generated config
fabn authored
102 # When set it specify the bytecode version for compiled class files
103 # config.bytecode_version = "1.6"
0998de7 @nicksieger Bring back 'compiled_ruby_files' config option
nicksieger authored
104
e28e63f @jkutner added documentation for config.allow_gem_home_override
jkutner authored
105 # When set to true, Warbler will override the value of ENV['GEM_HOME'] even it
9f70a8f @jkutner Switched override_gem_home default to true
jkutner authored
106 # has already been set. When set to false it will use any existing value of
107 # GEM_HOME if it is set.
108 # config.override_gem_home = true
e28e63f @jkutner added documentation for config.allow_gem_home_override
jkutner authored
109
aeb67ef @jkutner added compile_gems to sample warble.rb file
jkutner authored
110 # Allows for specifing custom executables
34db3ae @jkutner added examples of custom executables to the default warble.rb
jkutner authored
111 # config.executable = ["rake", "bin/rake"]
aeb67ef @jkutner added compile_gems to sample warble.rb file
jkutner authored
112
34db3ae @jkutner added examples of custom executables to the default warble.rb
jkutner authored
113 # Sets default (prefixed) parameters for the executables
114 # config.executable_params = "do:something"
115
c652969 @jkutner Added the move_jars_to_webinf_lib method back in, and create a config…
jkutner authored
116 # If set to true, moves jar files into WEB-INF/lib. Prior to version 1.4.2 of Warbler this was done
117 # by default. But since 1.4.2 this config defaults to false. It may need to be set to true for
118 # web servers that do not explode the WAR file.
9ef51fb @jkutner updated default warble.rb to include new details about move_jars_to_w…
jkutner authored
119 # Alternatively, this option can be set to a regular expression, which will
120 # act as a jar selector -- only jar files that match the pattern will be
121 # included in the archive.
c652969 @jkutner Added the move_jars_to_webinf_lib method back in, and create a config…
jkutner authored
122 # config.move_jars_to_webinf_lib = false
123
48cb971 @nicksieger Reorganize warble.rb template to have a war-only section
nicksieger authored
124 # === War files only below here ===
125
126 # Path to the pre-bundled gem directory inside the war file. Default
127 # is 'WEB-INF/gems'. Specify path if gems are already bundled
128 # before running Warbler. This also sets 'gem.path' inside web.xml.
129 # config.gem_path = "WEB-INF/vendor/bundler_gems"
130
131 # Files for WEB-INF directory (next to web.xml). This contains
132 # web.xml by default. If there is an .erb-File it will be processed
133 # with webxml-config. You may want to exclude this file via
134 # config.excludes.
135 # config.webinf_files += FileList["jboss-web.xml"]
136
137 # Files to be included in the root of the webapp. Note that files in public
138 # will have the leading 'public/' part of the path stripped during staging.
139 # config.public_html = FileList["public/**/*", "doc/**/*"]
140
141 # Pathmaps for controlling how public HTML files are copied into the .war
142 # config.pathmaps.public_html = ["%{public/,}p"]
143
f1131af @nicksieger Add docs for config.webserver in warble.rb
nicksieger authored
144 # Embedded webserver to use with the 'executable' feature. Currently supported
145 # webservers are:
146 # * <tt>winstone</tt> (default) - Winstone 0.9.10 from sourceforge
147 # * <tt>jenkins-ci.winstone</tt> - Improved Winstone from Jenkins CI
148 # * <tt>jetty</tt> - Embedded Jetty from Eclipse
149 # config.webserver = 'jetty'
150
478f76b @nicksieger 'rails.env' uncommented in config/warble.rb and internally default it…
nicksieger authored
151 # Value of RAILS_ENV for the webapp -- default as shown below
152 # config.webxml.rails.env = ENV['RAILS_ENV'] || 'production'
a8d5ad6 @nicksieger Revamp config preparing for jruby-rack switch
nicksieger authored
153
cd34bc9 @nicksieger gem.home => gem.path
nicksieger authored
154 # Application booter to use, one of :rack, :rails, or :merb (autodetected by default)
a8d5ad6 @nicksieger Revamp config preparing for jruby-rack switch
nicksieger authored
155 # config.webxml.booter = :rails
b5a28d3 @nicksieger Initial revision of warbler, not quite finished, but close
nicksieger authored
156
e7d8b2b @nicksieger Add boilerplate for putting JRuby in 1.9 mode (requires jruby-rack 1.…
nicksieger authored
157 # Set JRuby to run in 1.9 mode.
158 # config.webxml.jruby.compat.version = "1.9"
159
5c35d6a @nicksieger Exclude log files by default
nicksieger authored
160 # When using the :rack booter, "Rackup" script to use.
d69aa99 @nicksieger Don't embed rackup in web.xml by default
nicksieger authored
161 # - For 'rackup.path', the value points to the location of the rackup
162 # script in the web archive file. You need to make sure this file
163 # gets included in the war, possibly by adding it to config.includes
164 # or config.webinf_files above.
165 # - For 'rackup', the rackup script you provide as an inline string
166 # is simply embedded in web.xml.
5c35d6a @nicksieger Exclude log files by default
nicksieger authored
167 # The script is evaluated in a Rack::Builder to load the application.
168 # Examples:
d69aa99 @nicksieger Don't embed rackup in web.xml by default
nicksieger authored
169 # config.webxml.rackup.path = 'WEB-INF/hello.ru'
5c35d6a @nicksieger Exclude log files by default
nicksieger authored
170 # config.webxml.rackup = %{require './lib/demo'; run Rack::Adapter::Camping.new(Demo)}
171 # config.webxml.rackup = require 'cgi' && CGI::escapeHTML(File.read("config.ru"))
172
a8d5ad6 @nicksieger Revamp config preparing for jruby-rack switch
nicksieger authored
173 # Control the pool of Rails runtimes. Leaving unspecified means
174 # the pool will grow as needed to service requests. It is recommended
175 # that you fix these values when running a production server!
20ebd9e @plentz improving a bit warble default config comments
plentz authored
176 # If you're using threadsafe! mode, you probably don't want to set these values,
177 # since 1 runtime(default for threadsafe mode) will be enough.
a453fa3 @nicksieger Further work to support arbitrary custom context parameters in web.xml.
nicksieger authored
178 # config.webxml.jruby.min.runtimes = 2
179 # config.webxml.jruby.max.runtimes = 4
b5a28d3 @nicksieger Initial revision of warbler, not quite finished, but close
nicksieger authored
180
181 # JNDI data source name
182 # config.webxml.jndi = 'jdbc/rails'
761de7b Add configuration option to set MANIFEST.MF.
Tommy McGuire authored
183 end
Something went wrong with that request. Please try again.