Sha256: f49c669e01aff31d8e90656b86444889d3a7dd690f80209cd00546070445d774

Contents?: true

Size: 1.76 KB

Versions: 17

Compression:

Stored size: 1.76 KB

Contents

require "enumerator"
require 'utilrb/module/attr_predicate'
require 'concurrent'
require '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/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, level = 0)
        if level >= @warn_deprecated_level
            Autoproj.warn "#{method} is deprecated, #{msg}"
            caller.each { |l| Autoproj.warn "  #{l}" }
        end
    end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
autoproj-2.0.0.rc31 lib/autoproj.rb
autoproj-2.0.0.rc30 lib/autoproj.rb
autoproj-2.0.0.rc29 lib/autoproj.rb
autoproj-2.0.0.rc28 lib/autoproj.rb
autoproj-2.0.0.rc27 lib/autoproj.rb
autoproj-2.0.0.rc26 lib/autoproj.rb
autoproj-2.0.0.rc25 lib/autoproj.rb
autoproj-2.0.0.rc24 lib/autoproj.rb
autoproj-2.0.0.rc23 lib/autoproj.rb
autoproj-2.0.0.rc22 lib/autoproj.rb
autoproj-2.0.0.rc21 lib/autoproj.rb
autoproj-2.0.0.rc20 lib/autoproj.rb
autoproj-2.0.0.rc19 lib/autoproj.rb
autoproj-2.0.0.rc18 lib/autoproj.rb
autoproj-2.0.0.rc17 lib/autoproj.rb
autoproj-2.0.0.rc16 lib/autoproj.rb
autoproj-2.0.0.rc15 lib/autoproj.rb