blob: 00e4e8e7f159cbdcbe23bf3b30fcfa155a73a549 [file] [log] [blame]
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with this
# work for additional information regarding copyright ownership. The ASF
# licenses this file to you 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.
unless defined?(Buildr::VERSION)
require 'buildr/version'
end
require 'buildr/core'
require 'buildr/packaging'
require 'buildr/java'
require 'buildr/ide'
require 'buildr/shell'
require 'buildr/run'
# Methods defined in Buildr are both instance methods (e.g. when included in Project)
# and class methods when invoked like Buildr.artifacts().
module Buildr ; extend self ; end
# The Buildfile object (self) has access to all the Buildr methods and constants.
class << self ; include Buildr ; end
# All modules defined under Buildr::* can be referenced without Buildr:: prefix
# unless a conflict exists (e.g. Buildr::RSpec vs ::RSpec)
class Object #:nodoc:
Buildr.constants.each do |name|
const = Buildr.const_get(name)
if const.is_a?(Module)
const_set name, const unless const_defined?(name)
end
end
end