File tree Expand file tree Collapse file tree 8 files changed +4
-84
lines changed
Expand file tree Collapse file tree 8 files changed +4
-84
lines changed Original file line number Diff line number Diff line change @@ -275,21 +275,6 @@ protected int launchJRuby(final URL[] jars) throws Exception {
275275 return ( outcome instanceof Number ) ? ( (Number ) outcome ).intValue () : 0 ;
276276 }
277277
278- @ Deprecated
279- protected String locateExecutable (final Object scriptingContainer ) throws Exception {
280- if ( executable == null ) {
281- throw new IllegalStateException ("no executable" );
282- }
283- final File exec = new File (extractRoot , executable );
284- if ( exec .exists () ) {
285- return exec .getAbsolutePath ();
286- }
287- else {
288- final String script = locateExecutableScript (executable , executableScriptEnvPrefix ());
289- return (String ) invokeMethod (scriptingContainer , "runScriptlet" , script );
290- }
291- }
292-
293278 protected String locateExecutable (final Object scriptingContainer , final CharSequence envPreScript )
294279 throws Exception {
295280 if ( executable == null ) {
Original file line number Diff line number Diff line change 77module Warbler
88 module BundlerHelper
99 def to_spec ( spec )
10- # JRuby <= 1.7.20 does not handle respond_to? with method_missing right
11- # thus a `spec.respond_to?(:to_spec) ? spec.to_spec : spec` won't do :
12- if ::Bundler . const_defined? ( :StubSpecification ) # since Bundler 1.10.1
13- spec = spec . to_spec if spec . is_a? ( ::Bundler ::StubSpecification )
14- else
15- spec = spec . to_spec if spec . respond_to? ( :to_spec )
16- end
17- spec
10+ spec . respond_to? ( :to_spec ) ? spec . to_spec : spec
1811 end
1912 module_function :to_spec
2013 end
Original file line number Diff line number Diff line change @@ -33,9 +33,6 @@ class Config
3333 # configured.
3434 attr_accessor :traits
3535
36- # Deprecated: No longer has any effect.
37- attr_accessor :staging_dir
38-
3936 # Directory where the war file will be written. Can be used to direct
4037 # Warbler to place your war file directly in your application server's
4138 # autodeploy directory. Defaults to the root of the application directory.
Original file line number Diff line number Diff line change @@ -51,22 +51,18 @@ def specs(gem_dependencies)
5151
5252 # Add a single gem to WEB-INF/gems
5353 def find_single_gem_files ( gem_dependencies , gem_pattern , version = nil )
54- gem_spec_class = Gem ::Specification
5554 case gem_pattern
56- when gem_spec_class
55+ when Gem :: Specification
5756 return BundlerHelper . to_spec ( gem_pattern )
5857 when Gem ::Dependency
5958 gem = gem_pattern
6059 else
6160 gem = Gem ::Dependency . new ( gem_pattern , Gem ::Requirement . create ( version ) )
6261 end
6362 # skip development dependencies
64- return nil if gem . respond_to? ( :type ) and gem . type != :runtime
63+ return nil if gem . type != :runtime
6564
66- # Deal with deprecated Gem.source_index and #search
67- matched = gem . respond_to? ( :to_spec ) ? [ gem . to_spec ] : Gem . source_index . search ( gem )
68- fail "gem '#{ gem } ' not installed" if matched . empty?
69- spec = matched . last
65+ spec = gem . to_spec
7066 return spec unless gem_dependencies
7167 [ spec ] + spec . dependencies . map { |dependent_gem | find_single_gem_files ( gem_dependencies , dependent_gem ) }
7268 end
Original file line number Diff line number Diff line change @@ -70,8 +70,6 @@ def run_jrubyc(config, compiled_ruby_files)
7070 end
7171 @compiled = true
7272 end
73- # @deprecated only due compatibility
74- alias_method :run_javac , :run_jrubyc
7573
7674 def sh_jrubyc ( cmd )
7775 sh ( cmd ) do |ok , res |
@@ -337,12 +335,4 @@ def entry_in_jar(jar, entry)
337335 # #entry_in_jar with Java version
338336 require 'warbler_jar' if defined? ( JRUBY_VERSION ) && JRUBY_VERSION >= "1.5"
339337 end
340-
341- # Warbler::War is Deprecated. Please use Warbler::Jar.
342- class War < Jar
343- def initialize ( *)
344- super
345- warn "Warbler::War is deprecated. Please replace all occurrences with Warbler::Jar."
346- end
347- end
348338end
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 55 <!--
66 <display-name>Uncomment and put name :here: for Tomcat Dashboard</display-name>-->
77
8- <%# NOTE: to be renamed to servlet_context_params %>
98 <%- webxml . context_params . each do |name , value | -%>
109 < context-param >
1110 < param-name > <%= name %> </ param-name >
1211 < param-value > <%= value %> </ param-value >
1312 </ context-param >
1413 <%- end -%>
1514
16- <%- if webxml . respond_to? ( :servlet_filter ) -%>
1715 < filter >
1816 < filter-name > <%= webxml . servlet_filter_name %> </ filter-name >
1917 < filter-class > <%= webxml . servlet_filter %> </ filter-class >
2321 < filter-name > <%= webxml . servlet_filter_name %> </ filter-name >
2422 < url-pattern > <%= webxml . servlet_filter_url_pattern %> </ url-pattern >
2523 </ filter-mapping >
26- <%- else -%> <%# NOTE: due compatibility when warbler gets downgraded to 2.0.0 %>
27- < filter >
28- < filter-name > RackFilter</ filter-name >
29- < filter-class > org.jruby.rack.RackFilter</ filter-class >
30- < async-supported > true</ async-supported >
31- </ filter >
32- < filter-mapping >
33- < filter-name > RackFilter</ filter-name >
34- < url-pattern > /*</ url-pattern >
35- </ filter-mapping >
36- <%- end -%>
3724
38- <%- if webxml . respond_to? ( :servlet_context_listeners ) -%>
3925 <%- webxml . servlet_context_listeners . each do |listener | -%>
4026 < listener >
4127 < listener-class > <%= listener %> </ listener-class >
4228 </ listener >
4329 <%- end -%>
44- <%- else -%> <%# NOTE: due compatibility when warbler gets downgraded to 2.0.0 %>
45- < listener >
46- < listener-class > <%= webxml . servlet_context_listener %> </ listener-class >
47- </ listener >
48- <%- end -%>
4930
5031 <%- [ webxml . jndi ] . flatten . each do |jndi | -%>
5132 < resource-ref >
You can’t perform that action at this time.
0 commit comments