lib/appengine-tools/dev_appserver.rb in appengine-tools-0.0.4 vs lib/appengine-tools/dev_appserver.rb in appengine-tools-0.0.5
- old
+ new
@@ -70,9 +70,14 @@
server_args.unshift '--disable_update_check'
ENV.delete 'GEM_HOME'
ENV.delete 'GEM_PATH'
java_args << '-classpath'
java_args << AppEngine::SDK::TOOLS_JAR
+ java_args << '-Djava.util.logging.config.file=' +
+ AppEngine::SDK::SDK_ROOT + '/config/sdk/logging.properties'
+ if defined? AppEngine::SDK::AGENT_JAR
+ java_args << '-javaagent:' + AppEngine::SDK::AGENT_JAR
+ end
command = ['java'] + java_args + DEV_APPSERVER + server_args
if ENV['VERBOSE']
puts "exec #{command.map{|x| x.inspect}.join(' ')}"
end
exec(*command)