Sha256: c075c2810a25295c8389594f85984aa9a01557d1853ccebe6210d84c64862a7d

Contents?: true

Size: 1012 Bytes

Versions: 1

Compression:

Stored size: 1012 Bytes

Contents

require 'spec'

DEFAULT_BUILDR_DIR=File.expand_path(File.dirname(__FILE__) + '/../../buildr')
BUILDR_DIR =
  begin
    if ENV['BUILDR_DIR']
      ENV['BUILDR_DIR']
    elsif File.exist?(File.expand_path('../buildr_dir', __FILE__))
      File.read(File.expand_path('../buildr_dir', __FILE__)).strip
    else
      DEFAULT_BUILDR_DIR
    end
  end

unless File.exist?("#{BUILDR_DIR}/buildr.gemspec")
  raise "Unable to find buildr.gemspec in #{BUILDR_DIR == DEFAULT_BUILDR_DIR ? 'guessed' : 'specified'} $BUILDR_DIR (#{BUILDR_DIR})"
end

# hook into buildr's spec_helpers load process
module SandboxHook
  def SandboxHook.included(spec_helpers)
    $LOAD_PATH.unshift(File.dirname(__FILE__))
    $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
    require 'buildr_jaxb_xjc'
  end
end

require "#{BUILDR_DIR}/spec/spec_helpers.rb"

# Download deps into real local dir
Buildr::repositories.remote << Buildr::JaxbXjc.remote_repository
Buildr::JaxbXjc.requires.each { |spec| artifact(spec).invoke }

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
buildr-jaxb-xjc-0.0.1 spec/spec_helper.rb