Permalink
Browse files

Merge pull request #339 from fathalla/lighthouse-1044-patch

[#1044] Fixed case for dev and prod modes in application.py
  • Loading branch information...
pepite committed Sep 17, 2011
2 parents d82792d + 03bad68 commit 482b191eaf4e8efe95c38b4d8ebfa4e29fd6c7bd
Showing with 2 additions and 2 deletions.
  1. +2 −2 framework/pym/play/application.py
@@ -236,7 +236,7 @@ def java_cmd(self, java_args, cp_args=None, className='play.server.Server', args
application_mode = self.readConf('application.mode')
- if application_mode == 'prod':
+ if application_mode == 'prod' or application_mode == 'PROD':
java_args.append('-server')
java_policy = self.readConf('java.policy')
@@ -254,7 +254,7 @@ def java_cmd(self, java_args, cp_args=None, className='play.server.Server', args
java_args.append('-Dfile.encoding=utf-8')
- if self.readConf('application.mode') == 'dev':
+ if self.readConf('application.mode') == 'dev' or self.readConf('application.mode') == 'DEV':
if not self.play_env["disable_check_jpda"]: self.check_jpda()
java_args.append('-Xdebug')
java_args.append('-Xrunjdwp:transport=dt_socket,address=%s,server=y,suspend=n' % self.jpda_port)

0 comments on commit 482b191

Please sign in to comment.