From: Marius Gavrilescu Date: Thu, 27 Feb 2014 10:20:41 +0000 (+0200) Subject: Fix running java/perl/python programs with arguments X-Git-Tag: 5999.000_002~2 X-Git-Url: http://git.ieval.ro/?a=commitdiff_plain;h=cdd811c0738f8b83032002a04dc5c070cdb1f1ce;p=gruntmaster-daemon.git Fix running java/perl/python programs with arguments --- diff --git a/lib/Gruntmaster/Daemon/Format.pm b/lib/Gruntmaster/Daemon/Format.pm index 5b5081e..b80dd7d 100644 --- a/lib/Gruntmaster/Daemon/Format.pm +++ b/lib/Gruntmaster/Daemon/Format.pm @@ -26,9 +26,9 @@ sub command_and_args{ given($format) { "./$basename" when [qw/C CPP PASCAL/]; "./$basename.exe" when 'MONO'; - "java $basename" when 'JAVA'; - "perl $basename" when 'PERL'; - "python $basename" when 'PYTHON'; + java => $basename when 'JAVA'; + perl => $basename when 'PERL'; + python => $basename when 'PYTHON'; default { die "Don't know how to execute format $format" } } }