jetty-run 0.1.0 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,24 +0,0 @@
1
- require 'ruby_maven'
2
- require 'maven/jetty/rails_project'
3
-
4
- module Maven
5
- module Jetty
6
- class RubyMaven < Maven::RubyMaven
7
-
8
- def new_rails_project
9
- RailsProject.new
10
- end
11
-
12
- def exec(*args)
13
- # first make sure the jetty resources are in place
14
- if !File.exists?(File.join('config', 'web.xml')) && !File.exists?(File.join('src', 'main', 'webapp', 'WEB-INF', 'web.xml'))
15
- web_xml = Gem.find_files( 'maven/jetty/web.xml').first
16
- FileUtils.cp(web_xml, 'config')
17
- end
18
-
19
- # now just continue
20
- super
21
- end
22
- end
23
- end
24
- end