Sha256: ed84e68970efd22e03adca0d40cb2e30cde5d17965d7a7e55e11ef7e059c3b80

Contents?: true

Size: 1.11 KB

Versions: 1

Compression:

Stored size: 1.11 KB

Contents

#--
# Copyright (C) 2008 David Kellum
#
# Licensed under the Apache License, Version 2.0 (the "License"); you
# may not use this file except in compliance with the License.  You
# may obtain a copy of the License at
#
#    http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
# implied.  See the License for the specific language governing
# permissions and limitations under the License.
#++

require 'jetty'

module Jetty

  # Loads testservlets jar.
  module TestServlets
    require File.join( Jetty::JETTY_DIR, "gravitext-testservlets-1.0.jar" )
    import 'com.gravitext.testservlets.SnoopServlet'
    import 'com.gravitext.testservlets.PerfTestServlet'

    # Webapps directory containing "test/" expanded webapp and "test.war"
    WEBAPPS_DIR = File.join( Jetty::JETTY_DIR, '..', '..', 'webapps' )

    WEBAPP_TEST_EXPANDED = File.join( WEBAPPS_DIR, 'test' )
    WEBAPP_TEST_WAR      = File.join( WEBAPPS_DIR, 'test.war' )
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
jetty-6.1.19.1 lib/jetty/test-servlets.rb