<s> import os , os . path <EOL> import shutil <EOL> import subprocess <EOL> from play . utils import * <EOL> COMMANDS = [ '<STR_LIT>' ] <EOL> HELP = { <EOL> '<STR_LIT>' : '<STR_LIT>' <EOL> } <EOL> def execute ( ** kargs ) : <EOL> command = kargs . get ( "<STR_LIT>" ) <EOL> app = kargs . get ( "<STR_LIT>" ) <EOL> args = kargs . get ( "<STR_LIT:args>" ) <EOL> play_env = kargs . get ( "<STR_LIT>" ) <EOL> app . check ( ) <EOL> java_cmd = app . java_cmd ( args ) <EOL> if os . path . exists ( os . path . join ( app . path , '<STR_LIT>' ) ) : <EOL> shutil . rmtree ( os . path . join ( app . path , '<STR_LIT>' ) ) <EOL> if os . path . exists ( os . path . join ( app . path , '<STR_LIT>' ) ) : <EOL> shutil . rmtree ( os . path . join ( app . path , '<STR_LIT>' ) ) <EOL> java_cmd . insert ( <NUM_LIT:2> , '<STR_LIT>' ) <EOL> try : <EOL> return subprocess . call ( java_cmd , env = os . environ ) <EOL> except OSError : <EOL> print "<STR_LIT>" <EOL> print "<STR_LIT>" <EOL> sys . exit ( - <NUM_LIT:1> ) </s>
