Sha256: 9b19f9d0636b20e2fc33fa2674435d86e804df9460adac2b921599f17da1c79a

Contents?: true

Size: 593 Bytes

Versions: 4

Compression:

Stored size: 593 Bytes

Contents

require 'ruby_maven'
require 'maven/jetty/rails_project'

module Maven
  module Jetty
    class RubyMaven < Maven::RubyMaven

      def new_rails_project
        RailsProject.new
      end

      def exec(*args)
        # first make sure the jetty resources are in place
        if !File.exists?(File.join('config', 'web.xml')) && !File.exists?(File.join('src', 'main', 'webapp', 'WEB-INF', 'web.xml'))
          web_xml = Gem.find_files( 'maven/jetty/web.xml').first
          FileUtils.cp(web_xml, 'config')
        end

        # now just continue
        super
      end
    end
  end
end

Version data entries

4 entries across 3 versions & 2 rubygems

Version Path
gwt-run-0.1.0 lib/maven/gwt/ruby_maven.rb~
jetty-run-0.2.1 lib/maven/jetty/ruby_maven.rb~
jetty-run-0.1.0 lib/maven/jetty/ruby_maven.rb~
jetty-run-0.1.0 lib/maven/jetty/ruby_maven.rb