Sha256: d3290909c74000cdaed3a1022ee90f450577afecd2ce23e56faa6e1fa48ec4af

Contents?: true

Size: 900 Bytes

Versions: 17

Compression:

Stored size: 900 Bytes

Contents

require 'yaml'

unless File.exists? "build.yml"
  puts "Cannot find build.yml"
  exit 1
end

$app_config = YAML::load_file("build.yml")
$app_path = Dir.getwd

if ENV["RHO_HOME"].nil?
  if $app_config["sdk"]
    rakefilepath = File.join(File.expand_path($app_config['sdk']), 'Rakefile')
  else
    begin
      rakefilepath = File.expand_path( File.join(File.dirname(__FILE__), '..', '..', 'Rakefile' ) )
    rescue
      rakefilepath  = ""	
    end
  end  
else
  rakefilepath = "#{ENV["RHO_HOME"]}/Rakefile"
end

unless File.exists? rakefilepath
  puts "\nCannot find your Rhodes gem or source path: #{rakefilepath}"
  puts "\nIf you have the sdk on your path or have installed the gem this"
  puts "can be resolved by running 'set-rhodes-sdk'"
  puts "\nYou can also set this manually by modifying your build.yml or"
  puts "setting the environment variable RHO_HOME"
  exit 1
end

load rakefilepath

Version data entries

17 entries across 17 versions & 2 rubygems

Version Path
rhodes-7.6.0 lib/build/app_bootstrap.rake
rhodes-7.5.1 lib/build/app_bootstrap.rake
rhodes-7.4.1 lib/build/app_bootstrap.rake
rhodes-7.1.17 lib/build/app_bootstrap.rake
rhodes-6.2.0 lib/build/app_bootstrap.rake
rhodes-6.0.11 lib/build/app_bootstrap.rake
rhodes-5.5.18 lib/build/app_bootstrap.rake
rhodes-5.5.17 lib/build/app_bootstrap.rake
rhodes-5.5.15 lib/build/app_bootstrap.rake
rhodes-5.5.0.22 lib/build/app_bootstrap.rake
rhodes-5.5.2 lib/build/app_bootstrap.rake
rhodes-5.5.0.7 lib/build/app_bootstrap.rake
rhodes-5.5.0.3 lib/build/app_bootstrap.rake
rhodes-5.5.0 lib/build/app_bootstrap.rake
tauplatform-1.0.3 lib/build/app_bootstrap.rake
tauplatform-1.0.2 lib/build/app_bootstrap.rake
tauplatform-1.0.1 lib/build/app_bootstrap.rake