]> iEval git - gruntmaster-daemon.git/commitdiff
Fix running java/perl/python programs with arguments
authorMarius Gavrilescu <marius@ieval.ro>
Thu, 27 Feb 2014 10:20:41 +0000 (12:20 +0200)
committerMarius Gavrilescu <marius@ieval.ro>
Thu, 27 Feb 2014 10:20:41 +0000 (12:20 +0200)
lib/Gruntmaster/Daemon/Format.pm

index 5b5081e97a9682030d331074244c8adba9055478..b80dd7dd673740f2eb712e372a5fa4a5c75b817f 100644 (file)
@@ -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" }
        }
 }
This page took 0.028178 seconds and 4 git commands to generate.