backlog 0.34.1 → 0.34.2
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +15 -0
- data/Rakefile +7 -19
- data/app/models/work.rb +1 -1
- data/app/views/works/list_excel.rhtml +3 -5
- data/config/warble.rb +84 -0
- data/config/warble.rb~ +84 -0
- metadata +4 -28
- data/uwe@celina +0 -0
- data/vendor/plugins/goldspike/README +0 -13
- data/vendor/plugins/goldspike/Rakefile +0 -22
- data/vendor/plugins/goldspike/generators/goldspike/goldspike_generator.rb +0 -21
- data/vendor/plugins/goldspike/generators/goldspike/templates/war.rb +0 -8
- data/vendor/plugins/goldspike/generators/goldspike/templates/web.xml.erb +0 -57
- data/vendor/plugins/goldspike/init.rb +0 -1
- data/vendor/plugins/goldspike/install.rb +0 -4
- data/vendor/plugins/goldspike/lib/create_war.rb +0 -102
- data/vendor/plugins/goldspike/lib/java_library.rb +0 -131
- data/vendor/plugins/goldspike/lib/packer.rb +0 -215
- data/vendor/plugins/goldspike/lib/run.rb +0 -160
- data/vendor/plugins/goldspike/lib/util.rb +0 -35
- data/vendor/plugins/goldspike/lib/war_config.rb +0 -324
- data/vendor/plugins/goldspike/tasks/war.rake +0 -49
- data/vendor/plugins/goldspike/test/test_create_war.rb +0 -8
- data/vendor/plugins/goldspike/test/test_java_library.rb +0 -130
- data/vendor/plugins/goldspike/test/test_maven_library.rb +0 -132
- data/vendor/plugins/goldspike/test/war_config_test_config.rb +0 -15
data/History.txt
CHANGED
@@ -1,3 +1,18 @@
|
|
1
|
+
== 0.34.2 2008-10-09
|
2
|
+
|
3
|
+
=== Features
|
4
|
+
|
5
|
+
* Switched from Goldspike to Warbler for WAR file generation.
|
6
|
+
* Changed to make all new work records invoicable by default.
|
7
|
+
|
8
|
+
=== Fixes
|
9
|
+
|
10
|
+
* Fixed bug in Excel export of work records. datetime fields could not be parsed by newer versions og Excel.
|
11
|
+
|
12
|
+
=== Internal
|
13
|
+
|
14
|
+
* Fixed failing test for Absence records.
|
15
|
+
|
1
16
|
== 0.34.1 2008-09-22
|
2
17
|
|
3
18
|
=== Fixes
|
data/Rakefile
CHANGED
@@ -49,26 +49,14 @@ task :release_all do
|
|
49
49
|
Rake::Task[:post_news].invoke
|
50
50
|
end
|
51
51
|
|
52
|
-
# Remember to set @send_timeout in /usr/lib/ruby/gems/1.8/gems/rubyforge-0.4.4/lib/http-access2.rb
|
53
|
-
# @send_timeout = 3600
|
54
52
|
desc 'Release the application as a Java EE WAR file to RubyForge'
|
55
53
|
task :release_war do
|
56
|
-
|
57
|
-
Dir.mkdir 'WEB-INF' unless File.exists? 'WEB-INF'
|
58
|
-
unless File.exists? 'WEB-INF/web.xml.erb'
|
59
|
-
File.open('WEB-INF/web.xml.erb', 'w') do |f|
|
60
|
-
f << ERB.new(File.read('vendor/plugins/goldspike/generators/goldspike/templates/web.xml.erb')).result
|
61
|
-
end
|
62
|
-
end
|
63
|
-
Rake::Task['war:standalone:create'].invoke
|
54
|
+
`warble`
|
64
55
|
war_pkg_file = "pkg/backlog-#{APP::VERSION}.war"
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
rf.login
|
72
|
-
rf.add_file 'backlog', 'backlog', APP::VERSION, war_pkg_file
|
73
|
-
end
|
56
|
+
raise "WAR file missing" unless File.exists? 'backlog.war'
|
57
|
+
FileUtils.makedirs 'pkg'
|
58
|
+
FileUtils.move 'backlog.war', war_pkg_file
|
59
|
+
rf = RubyForge.new.configure
|
60
|
+
rf.login
|
61
|
+
rf.add_file 'backlog', 'backlog', APP::VERSION, war_pkg_file
|
74
62
|
end
|
data/app/models/work.rb
CHANGED
@@ -36,9 +36,6 @@
|
|
36
36
|
<Style ss:ID="header">
|
37
37
|
<Font x:Family="Swiss" ss:Size="14" ss:Bold="1"/>
|
38
38
|
</Style>
|
39
|
-
<Style ss:ID="DateTime">
|
40
|
-
<NumberFormat ss:Format="Number" />
|
41
|
-
</Style>
|
42
39
|
</Styles>
|
43
40
|
<Worksheet ss:Name="<%=l(:done)%>">
|
44
41
|
<Table ss:ExpandedColumnCount="256" x:FullColumns="1"
|
@@ -77,9 +74,10 @@
|
|
77
74
|
<Cell><Data ss:Type="String"><%=work.description %></Data></Cell>
|
78
75
|
<Cell><Data ss:Type="Number"><%=work.hours %></Data></Cell>
|
79
76
|
<Cell><Data ss:Type="String"><%=work.invoice? ? 'Ja' : 'Nei' %></Data></Cell>
|
80
|
-
<Cell
|
81
|
-
<Cell
|
77
|
+
<Cell><Data ss:Type="DateTime"><%=work.start_time ? work.started_on.at(work.start_time).strftime('%Y-%m-%dT%H:%M:%S') : work.started_on.strftime('%Y-%m-%d') %></Data></Cell>
|
78
|
+
<Cell><Data ss:Type="DateTime"><%=work.completed_at && work.completed_at.strftime('%Y-%m-%dT%H:%M:%S') %></Data></Cell>
|
82
79
|
</Row>
|
80
|
+
|
83
81
|
<% end %>
|
84
82
|
|
85
83
|
</Table>
|
data/config/warble.rb
ADDED
@@ -0,0 +1,84 @@
|
|
1
|
+
# Warbler web application assembly configuration file
|
2
|
+
Warbler::Config.new do |config|
|
3
|
+
# Temporary directory where the application is staged
|
4
|
+
# config.staging_dir = "tmp/war"
|
5
|
+
|
6
|
+
# Application directories to be included in the webapp.
|
7
|
+
config.dirs = %w(app config lib log vendor tmp)
|
8
|
+
|
9
|
+
# Additional files/directories to include, above those in config.dirs
|
10
|
+
# config.includes = FileList["db"]
|
11
|
+
config.includes = FileList["History.txt"]
|
12
|
+
|
13
|
+
# Additional files/directories to exclude
|
14
|
+
# config.excludes = FileList["lib/tasks/*"]
|
15
|
+
|
16
|
+
# Additional Java .jar files to include. Note that if .jar files are placed
|
17
|
+
# in lib (and not otherwise excluded) then they need not be mentioned here.
|
18
|
+
# JRuby and JRuby-Rack are pre-loaded in this list. Be sure to include your
|
19
|
+
# own versions if you directly set the value
|
20
|
+
# config.java_libs += FileList["lib/java/*.jar"]
|
21
|
+
|
22
|
+
# Loose Java classes and miscellaneous files to be placed in WEB-INF/classes.
|
23
|
+
# config.java_classes = FileList["target/classes/**.*"]
|
24
|
+
|
25
|
+
# One or more pathmaps defining how the java classes should be copied into
|
26
|
+
# WEB-INF/classes. The example pathmap below accompanies the java_classes
|
27
|
+
# configuration above. See http://rake.rubyforge.org/classes/String.html#M000017
|
28
|
+
# for details of how to specify a pathmap.
|
29
|
+
# config.pathmaps.java_classes << "%{target/classes/,}p"
|
30
|
+
|
31
|
+
# Gems to be included. You need to tell Warbler which gems your application needs
|
32
|
+
# so that they can be packaged in the war file.
|
33
|
+
# The Rails gems are included by default unless the vendor/rails directory is present.
|
34
|
+
# config.gems += ["activerecord-jdbcmysql-adapter", "jruby-openssl"]
|
35
|
+
# config.gems << "tzinfo"
|
36
|
+
config.gems << 'activerecord-jdbc-adapter'
|
37
|
+
|
38
|
+
# Uncomment this if you don't want to package rails gem.
|
39
|
+
# config.gems -= ["rails"]
|
40
|
+
|
41
|
+
# The most recent versions of gems are used.
|
42
|
+
# You can specify versions of gems by using a hash assignment:
|
43
|
+
# config.gems["rails"] = "2.0.2"
|
44
|
+
|
45
|
+
# You can also use regexps or Gem::Dependency objects for flexibility or
|
46
|
+
# fine-grained control.
|
47
|
+
# config.gems << /^merb-/
|
48
|
+
# config.gems << Gem::Dependency.new("merb-core", "= 0.9.3")
|
49
|
+
|
50
|
+
# Include gem dependencies not mentioned specifically
|
51
|
+
config.gem_dependencies = true
|
52
|
+
|
53
|
+
# Files to be included in the root of the webapp. Note that files in public
|
54
|
+
# will have the leading 'public/' part of the path stripped during staging.
|
55
|
+
# config.public_html = FileList["public/**/*", "doc/**/*"]
|
56
|
+
|
57
|
+
# Pathmaps for controlling how public HTML files are copied into the .war
|
58
|
+
# config.pathmaps.public_html = ["%{public/,}p"]
|
59
|
+
|
60
|
+
# Name of the war file (without the .war) -- defaults to the basename
|
61
|
+
# of RAILS_ROOT
|
62
|
+
# config.war_name = "mywar"
|
63
|
+
|
64
|
+
# Value of RAILS_ENV for the webapp -- default as shown below
|
65
|
+
# config.webxml.rails.env = ENV['RAILS_ENV'] || 'production'
|
66
|
+
|
67
|
+
# Application booter to use, one of :rack, :rails, or :merb. (Default :rails)
|
68
|
+
# config.webxml.booter = :rails
|
69
|
+
|
70
|
+
# When using the :rack booter, "Rackup" script to use.
|
71
|
+
# The script is evaluated in a Rack::Builder to load the application.
|
72
|
+
# Examples:
|
73
|
+
# config.webxml.rackup = %{require './lib/demo'; run Rack::Adapter::Camping.new(Demo)}
|
74
|
+
# config.webxml.rackup = require 'cgi' && CGI::escapeHTML(File.read("config.ru"))
|
75
|
+
|
76
|
+
# Control the pool of Rails runtimes. Leaving unspecified means
|
77
|
+
# the pool will grow as needed to service requests. It is recommended
|
78
|
+
# that you fix these values when running a production server!
|
79
|
+
# config.webxml.jruby.min.runtimes = 2
|
80
|
+
# config.webxml.jruby.max.runtimes = 4
|
81
|
+
|
82
|
+
# JNDI data source name
|
83
|
+
# config.webxml.jndi = 'jdbc/rails'
|
84
|
+
end
|
data/config/warble.rb~
ADDED
@@ -0,0 +1,84 @@
|
|
1
|
+
# Warbler web application assembly configuration file
|
2
|
+
Warbler::Config.new do |config|
|
3
|
+
# Temporary directory where the application is staged
|
4
|
+
# config.staging_dir = "tmp/war"
|
5
|
+
|
6
|
+
# Application directories to be included in the webapp.
|
7
|
+
config.dirs = %w(app config lib log vendor tmp)
|
8
|
+
|
9
|
+
# Additional files/directories to include, above those in config.dirs
|
10
|
+
# config.includes = FileList["db"]
|
11
|
+
|
12
|
+
# Additional files/directories to exclude
|
13
|
+
# config.excludes = FileList["lib/tasks/*"]
|
14
|
+
|
15
|
+
# Additional Java .jar files to include. Note that if .jar files are placed
|
16
|
+
# in lib (and not otherwise excluded) then they need not be mentioned here.
|
17
|
+
# JRuby and JRuby-Rack are pre-loaded in this list. Be sure to include your
|
18
|
+
# own versions if you directly set the value
|
19
|
+
# config.java_libs += FileList["lib/java/*.jar"]
|
20
|
+
|
21
|
+
# Loose Java classes and miscellaneous files to be placed in WEB-INF/classes.
|
22
|
+
# config.java_classes = FileList["target/classes/**.*"]
|
23
|
+
|
24
|
+
# One or more pathmaps defining how the java classes should be copied into
|
25
|
+
# WEB-INF/classes. 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
|
+
|
30
|
+
# Gems to be included. You need to tell Warbler which gems your application needs
|
31
|
+
# so that they can be packaged in the war file.
|
32
|
+
# The Rails gems are included by default unless the vendor/rails directory is present.
|
33
|
+
# config.gems += ["activerecord-jdbcmysql-adapter", "jruby-openssl"]
|
34
|
+
# config.gems << "tzinfo"
|
35
|
+
config.gems << 'activerecord-jdbc-adapter'
|
36
|
+
|
37
|
+
# Uncomment this if you don't want to package rails gem.
|
38
|
+
# config.gems -= ["rails"]
|
39
|
+
|
40
|
+
# The most recent versions of gems are used.
|
41
|
+
# You can specify versions of gems by using a hash assignment:
|
42
|
+
# config.gems["rails"] = "2.0.2"
|
43
|
+
|
44
|
+
# You can also use regexps or Gem::Dependency objects for flexibility or
|
45
|
+
# fine-grained control.
|
46
|
+
# config.gems << /^merb-/
|
47
|
+
# config.gems << Gem::Dependency.new("merb-core", "= 0.9.3")
|
48
|
+
|
49
|
+
# Include gem dependencies not mentioned specifically
|
50
|
+
config.gem_dependencies = true
|
51
|
+
|
52
|
+
# Files to be included in the root of the webapp. Note that files in public
|
53
|
+
# will have the leading 'public/' part of the path stripped during staging.
|
54
|
+
# config.public_html = FileList["public/**/*", "doc/**/*"]
|
55
|
+
config.public_html = FileList["History.txt"]
|
56
|
+
|
57
|
+
# Pathmaps for controlling how public HTML files are copied into the .war
|
58
|
+
# config.pathmaps.public_html = ["%{public/,}p"]
|
59
|
+
|
60
|
+
# Name of the war file (without the .war) -- defaults to the basename
|
61
|
+
# of RAILS_ROOT
|
62
|
+
# config.war_name = "mywar"
|
63
|
+
|
64
|
+
# Value of RAILS_ENV for the webapp -- default as shown below
|
65
|
+
# config.webxml.rails.env = ENV['RAILS_ENV'] || 'production'
|
66
|
+
|
67
|
+
# Application booter to use, one of :rack, :rails, or :merb. (Default :rails)
|
68
|
+
# config.webxml.booter = :rails
|
69
|
+
|
70
|
+
# When using the :rack booter, "Rackup" script to use.
|
71
|
+
# The script is evaluated in a Rack::Builder to load the application.
|
72
|
+
# Examples:
|
73
|
+
# config.webxml.rackup = %{require './lib/demo'; run Rack::Adapter::Camping.new(Demo)}
|
74
|
+
# config.webxml.rackup = require 'cgi' && CGI::escapeHTML(File.read("config.ru"))
|
75
|
+
|
76
|
+
# Control the pool of Rails runtimes. Leaving unspecified means
|
77
|
+
# the pool will grow as needed to service requests. It is recommended
|
78
|
+
# that you fix these values when running a production server!
|
79
|
+
# config.webxml.jruby.min.runtimes = 2
|
80
|
+
# config.webxml.jruby.max.runtimes = 4
|
81
|
+
|
82
|
+
# JNDI data source name
|
83
|
+
# config.webxml.jndi = 'jdbc/rails'
|
84
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: backlog
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.34.
|
4
|
+
version: 0.34.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Uwe Kubosch
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2008-09
|
12
|
+
date: 2008-10-09 00:00:00 +02:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -420,31 +420,6 @@ files:
|
|
420
420
|
- vendor/plugins/redhillonrails_core/lib/red_hill_consulting/core/active_record/connection_adapters/abstract_adapter.rb
|
421
421
|
- vendor/plugins/redhillonrails_core/lib/red_hill_consulting/core/active_record/base.rb
|
422
422
|
- vendor/plugins/redhillonrails_core/lib/red_hill_consulting/core/active_record/schema.rb
|
423
|
-
- vendor/plugins/goldspike
|
424
|
-
- vendor/plugins/goldspike/README
|
425
|
-
- vendor/plugins/goldspike/init.rb
|
426
|
-
- vendor/plugins/goldspike/generators
|
427
|
-
- vendor/plugins/goldspike/generators/goldspike
|
428
|
-
- vendor/plugins/goldspike/generators/goldspike/goldspike_generator.rb
|
429
|
-
- vendor/plugins/goldspike/generators/goldspike/templates
|
430
|
-
- vendor/plugins/goldspike/generators/goldspike/templates/web.xml.erb
|
431
|
-
- vendor/plugins/goldspike/generators/goldspike/templates/war.rb
|
432
|
-
- vendor/plugins/goldspike/tasks
|
433
|
-
- vendor/plugins/goldspike/tasks/war.rake
|
434
|
-
- vendor/plugins/goldspike/install.rb
|
435
|
-
- vendor/plugins/goldspike/test
|
436
|
-
- vendor/plugins/goldspike/test/test_java_library.rb
|
437
|
-
- vendor/plugins/goldspike/test/war_config_test_config.rb
|
438
|
-
- vendor/plugins/goldspike/test/test_maven_library.rb
|
439
|
-
- vendor/plugins/goldspike/test/test_create_war.rb
|
440
|
-
- vendor/plugins/goldspike/Rakefile
|
441
|
-
- vendor/plugins/goldspike/lib
|
442
|
-
- vendor/plugins/goldspike/lib/create_war.rb
|
443
|
-
- vendor/plugins/goldspike/lib/util.rb
|
444
|
-
- vendor/plugins/goldspike/lib/java_library.rb
|
445
|
-
- vendor/plugins/goldspike/lib/run.rb
|
446
|
-
- vendor/plugins/goldspike/lib/packer.rb
|
447
|
-
- vendor/plugins/goldspike/lib/war_config.rb
|
448
423
|
- vendor/plugins/foreign_key_migrations
|
449
424
|
- vendor/plugins/foreign_key_migrations/README
|
450
425
|
- vendor/plugins/foreign_key_migrations/init.rb
|
@@ -702,6 +677,7 @@ files:
|
|
702
677
|
- config
|
703
678
|
- config/database.yml
|
704
679
|
- config/routes.rb
|
680
|
+
- config/warble.rb~
|
705
681
|
- config/environments
|
706
682
|
- config/environments/test.rb
|
707
683
|
- config/environments/localization_environment.rb
|
@@ -712,6 +688,7 @@ files:
|
|
712
688
|
- config/mime_types.yaml
|
713
689
|
- config/war.rb
|
714
690
|
- config/boot.rb
|
691
|
+
- config/warble.rb
|
715
692
|
- cruise_config.rb
|
716
693
|
- db
|
717
694
|
- db/test.db
|
@@ -747,7 +724,6 @@ files:
|
|
747
724
|
- db/migrate/017_insert_datek_projects.rb
|
748
725
|
- db/migrate/006_works_data_fix.rb
|
749
726
|
- db/schema.rb
|
750
|
-
- uwe@celina
|
751
727
|
- README.txt
|
752
728
|
has_rdoc: true
|
753
729
|
homepage: http://rubyforge.org/projects/backlog/
|
data/uwe@celina
DELETED
Binary file
|
@@ -1,13 +0,0 @@
|
|
1
|
-
This task allows you to package up your Rails web application
|
2
|
-
as a war file for deployment to Tomcat or another J2EE server.
|
3
|
-
|
4
|
-
It adds the following tasks to your project:
|
5
|
-
|
6
|
-
+ war:standalone:create
|
7
|
-
create a self-contained package which includes JRuby and any gems that are
|
8
|
-
required by the application.
|
9
|
-
|
10
|
-
+ war:shared:create
|
11
|
-
create a package containing only the application. JRuby and rails-integration
|
12
|
-
should be made available using a shared classloader. If JRUBY_HOME is set,
|
13
|
-
then this will be used to locate any Ruby libraries and gems.
|
@@ -1,22 +0,0 @@
|
|
1
|
-
require 'rake'
|
2
|
-
require 'rake/testtask'
|
3
|
-
require 'rake/rdoctask'
|
4
|
-
|
5
|
-
desc 'Default: run unit tests.'
|
6
|
-
task :default => :test
|
7
|
-
|
8
|
-
desc 'Test the create_war plugin.'
|
9
|
-
Rake::TestTask.new(:test) do |t|
|
10
|
-
t.libs << 'lib'
|
11
|
-
t.pattern = 'test/**/*_test.rb'
|
12
|
-
t.verbose = true
|
13
|
-
end
|
14
|
-
|
15
|
-
desc 'Generate documentation for the create_war plugin.'
|
16
|
-
Rake::RDocTask.new(:rdoc) do |rdoc|
|
17
|
-
rdoc.rdoc_dir = 'rdoc'
|
18
|
-
rdoc.title = 'CreateWar'
|
19
|
-
rdoc.options << '--line-numbers' << '--inline-source'
|
20
|
-
rdoc.rdoc_files.include('README')
|
21
|
-
rdoc.rdoc_files.include('lib/**/*.rb')
|
22
|
-
end
|
@@ -1,21 +0,0 @@
|
|
1
|
-
class GoldspikeGenerator < Rails::Generator::Base
|
2
|
-
|
3
|
-
def initialize(runtime_args, runtime_options = {})
|
4
|
-
super
|
5
|
-
end
|
6
|
-
|
7
|
-
def manifest
|
8
|
-
record do |m|
|
9
|
-
m.directory 'config'
|
10
|
-
m.template 'war.rb', File.join('config', 'war.rb')
|
11
|
-
m.directory 'WEB-INF'
|
12
|
-
m.template 'web.xml.erb', File.join('WEB-INF', 'web.xml.erb')
|
13
|
-
end
|
14
|
-
end
|
15
|
-
|
16
|
-
protected
|
17
|
-
|
18
|
-
def banner
|
19
|
-
"Usage: #{$0} goldspike"
|
20
|
-
end
|
21
|
-
end
|
@@ -1,8 +0,0 @@
|
|
1
|
-
# Goldspike configuration
|
2
|
-
|
3
|
-
# Set the version of JRuby and GoldSpike to use:
|
4
|
-
#maven_library 'org.jruby', 'jruby-complete', '1.0'
|
5
|
-
#maven_library 'org.jruby.extras', 'goldspike', '1.3-SNAPSHOT'
|
6
|
-
|
7
|
-
# Add a Java library from the Maven repository:
|
8
|
-
#maven_library 'mysql', 'mysql-connector-java', '5.0.4'
|
@@ -1,57 +0,0 @@
|
|
1
|
-
<!DOCTYPE web-app PUBLIC
|
2
|
-
"-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
|
3
|
-
"http://java.sun.com/dtd/web-app_2_3.dtd">
|
4
|
-
<web-app>
|
5
|
-
|
6
|
-
<context-param>
|
7
|
-
<param-name>jruby.standalone</param-name>
|
8
|
-
<param-value><%%= config.standalone %></param-value>
|
9
|
-
</context-param>
|
10
|
-
|
11
|
-
<%% if !config.standalone %>
|
12
|
-
<!-- jruby.home can be set either here, or as the system property jruby.home -->
|
13
|
-
<context-param>
|
14
|
-
<param-name>jruby.home</param-name>
|
15
|
-
<param-value><%%= config.jruby_home || '/usr/local/jruby' %></param-value>
|
16
|
-
</context-param>
|
17
|
-
<%% end %>
|
18
|
-
|
19
|
-
<context-param>
|
20
|
-
<param-name>rails.env</param-name>
|
21
|
-
<param-value><%%= config.rails_env %></param-value>
|
22
|
-
</context-param>
|
23
|
-
|
24
|
-
<context-param>
|
25
|
-
<param-name>files.default</param-name>
|
26
|
-
<param-value>rails</param-value>
|
27
|
-
<description>The files servlet should forward to the rails servlet if no file could be found</description>
|
28
|
-
</context-param>
|
29
|
-
|
30
|
-
<listener>
|
31
|
-
<listener-class>org.jruby.webapp.RailsContextListener</listener-class>
|
32
|
-
</listener>
|
33
|
-
|
34
|
-
<servlet>
|
35
|
-
<servlet-name>rails</servlet-name>
|
36
|
-
<servlet-class><%%= config.servlet %></servlet-class>
|
37
|
-
</servlet>
|
38
|
-
<servlet>
|
39
|
-
<servlet-name>files</servlet-name>
|
40
|
-
<servlet-class>org.jruby.webapp.FileServlet</servlet-class>
|
41
|
-
</servlet>
|
42
|
-
|
43
|
-
<!-- Allow all requests to go to the files servlet first -->
|
44
|
-
<servlet-mapping>
|
45
|
-
<servlet-name>files</servlet-name>
|
46
|
-
<url-pattern>/</url-pattern>
|
47
|
-
</servlet-mapping>
|
48
|
-
|
49
|
-
<%% if config.datasource_jndi %>
|
50
|
-
<resource-ref>
|
51
|
-
<res-ref-name><%%= config.datasource_jndi_name %></res-ref-name>
|
52
|
-
<res-type>javax.sql.DataSource</res-type>
|
53
|
-
<res-auth>Container</res-auth>
|
54
|
-
</resource-ref>
|
55
|
-
<%% end %>
|
56
|
-
|
57
|
-
</web-app>
|