mirror of
https://github.com/apache/cordova-android.git
synced 2026-05-11 00:00:05 +08:00
Change droidgap create to not use 'grep' and have better error messages
This commit is contained in:
+2
-2
@@ -29,8 +29,8 @@ class Create < Classic
|
||||
@content = 'index.html'
|
||||
|
||||
# stop executation on errors
|
||||
raise 'No index.html found!' unless File.exists? File.join(path, 'index.html')
|
||||
raise 'Could not find android in your path!' if @android_sdk_path.empty?
|
||||
raise 'Expected index.html in the following folder #{ path }.\nThe path is expected to be the directory droidgap create is run from or specified as a command line arg like droidgap create my_path.' unless File.exists? File.join(path, 'index.html')
|
||||
raise 'Could not find android in your PATH!' if @android_sdk_path.empty?
|
||||
end
|
||||
|
||||
# reads in a config.xml file
|
||||
|
||||
Reference in New Issue
Block a user