jetty-run 0.1.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -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