Sha256: 6c2a5d583859f8e01cb738bc90ed52c93b5bc48d59772f81d27567feda36af24

Contents?: true

Size: 1.96 KB

Versions: 18

Compression:

Stored size: 1.96 KB

Contents

require 'rexml/streamlistener'
require "enumerator"
require 'utilrb/module/attr_predicate'
require 'pathname'
require 'concurrent'
require 'autobuild'
require 'autoproj/autobuild'
require 'autoproj/base'
require 'autoproj/exceptions'
require 'autoproj/version'
require 'autoproj/reporter'
require 'autoproj/environment'
require 'autoproj/variable_expansion'
require 'autoproj/find_workspace'
require 'autoproj/vcs_definition'
require 'autoproj/package_set'
require 'autoproj/local_package_set'
require 'autoproj/package_definition'
require 'autoproj/package_selection'
require 'autoproj/metapackage'
require 'autoproj/manifest'
require 'autoproj/package_manifest'
require 'autoproj/installation_manifest'
require 'autoproj/os_package_installer'
require 'autoproj/os_package_resolver'
require 'autoproj/system'
require 'autoproj/build_option'
require 'autoproj/configuration'
require 'autoproj/options'
# Required by Workspace
require 'autoproj/ops/import'
# Required for auto-saving in import_packages
require 'autoproj/ops/snapshot'
require 'autoproj/query'

require 'autoproj/ops/tools'
require 'autoproj/ops/loader'
require 'autoproj/ops/configuration'

require 'autoproj/workspace'

require 'logger'
require 'utilrb/logger'

module Autoproj
    class << self
        attr_reader :logger
    end
    @logger = Logger.new(STDOUT)
    logger.level = Logger::WARN
    logger.formatter = lambda { |severity, time, progname, msg| "#{severity}: #{msg}\n" }
    extend Logger::Forward

    def self.warn_deprecated_level
        @warn_deprecated_level
    end

    def self.warn_deprecated_level=(level)
        @warn_deprecated_level = level
    end
    @warn_deprecated_level = 1

    def self.warn_deprecated(method, msg = nil, level = 0)
        if level >= @warn_deprecated_level
            if msg
                Autoproj.warn "#{method} is deprecated, #{msg}"
            else
                Autoproj.warn msg
            end
            caller.each { |l| Autoproj.warn "  #{l}" }
        end
    end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
autoproj-2.3.1 lib/autoproj.rb
autoproj-2.3.0 lib/autoproj.rb
autoproj-2.2.2 lib/autoproj.rb
autoproj-2.2.1 lib/autoproj.rb
autoproj-2.2.0 lib/autoproj.rb
autoproj-2.1.2 lib/autoproj.rb
autoproj-2.1.1 lib/autoproj.rb
autoproj-2.1.0 lib/autoproj.rb
autoproj-2.1.0.rc1 lib/autoproj.rb
autoproj-2.0.3 lib/autoproj.rb
autoproj-2.0.2 lib/autoproj.rb
autoproj-2.0.1 lib/autoproj.rb
autoproj-2.0.0 lib/autoproj.rb
autoproj-2.0.0.rc42 lib/autoproj.rb
autoproj-2.0.0.rc41 lib/autoproj.rb
autoproj-2.0.0.rc40 lib/autoproj.rb
autoproj-2.0.0.rc39 lib/autoproj.rb
autoproj-2.0.0.rc38 lib/autoproj.rb