lib/appengine-tools/dev_appserver.rb in appengine-tools-0.0.3 vs lib/appengine-tools/dev_appserver.rb in appengine-tools-0.0.4
- old
+ new
@@ -36,11 +36,11 @@
start_java(path, java_args, server_args)
end
def parse_argv(argv)
java_args = []
- server_args = ['--disable_update_check']
+ server_args = []
start_on_first_thread = false
if RUBY_PLATFORM =~ /darwin/ ||
(RUBY_PLATFORM == 'java' &&
java.lang.System.getProperty("os.name").downcase == "mac os x")
start_on_first_thread = true
@@ -65,9 +65,10 @@
jruby_home = get_jruby_home(path)
java_args << "-Djruby.home=#{jruby_home}" if jruby_home
server_args[-1] = File.expand_path(path)
Dir.chdir(path)
end
+ server_args.unshift '--disable_update_check'
ENV.delete 'GEM_HOME'
ENV.delete 'GEM_PATH'
java_args << '-classpath'
java_args << AppEngine::SDK::TOOLS_JAR
command = ['java'] + java_args + DEV_APPSERVER + server_args