<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,6 +1,27 @@
 
+unless File.exists? &quot;build.yml&quot;
+  puts &quot;Cannot find build.yml&quot;
+  exit 1
+end
+
+
 $app_config = YAML::load_file(&quot;build.yml&quot;)
 $app_path = File.expand_path(File.dirname(__FILE__))
 
-load &quot;#{$app_config[&quot;sdk&quot;]}/Rakefile&quot;
+if ENV[&quot;RHO_HOME&quot;].nil?
+  rakefilepath = &quot;#{$app_config[&quot;sdk&quot;]}/Rakefile&quot;
+else
+  rakefilepath = &quot;#{ENV[&quot;RHO_HOME&quot;]}/Rakefile&quot;
+end
+
+unless File.exists? rakefilepath
+  puts &quot;\nCannot find your Rhodes gem or source path.&quot;
+  puts &quot;\nIf you have the sdk on your path or have installed the gem this&quot;
+  puts &quot;can be resolved by running 'set-rhodes-sdk'&quot;
+  puts &quot;\nYou can also set this manually by modifying your build.yml or&quot;
+  puts &quot;setting the environment variable RHO_HOME&quot;
+  exit 1
+end
+
+load rakefilepath
 </diff>
      <filename>res/generators/templates/application/Rakefile</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>fe7db07d064b1de17415cb3fa596b30f694190cc</id>
    </parent>
  </parents>
  <author>
    <name>root</name>
    <email>root@bt.(none)</email>
  </author>
  <url>http://github.com/rhomobile/rhodes/commit/e4b744b004ffcc0f79d5bf7d4de0ecf417bec87e</url>
  <id>e4b744b004ffcc0f79d5bf7d4de0ecf417bec87e</id>
  <committed-date>2009-10-29T04:50:30-07:00</committed-date>
  <authored-date>2009-10-29T04:50:30-07:00</authored-date>
  <message>Better error handling in rake file</message>
  <tree>1f48fd3da918d009c82b65798df341cb797f7ba2</tree>
  <committer>
    <name>root</name>
    <email>root@bt.(none)</email>
  </committer>
</commit>
