]> iEval git - gruntmaster-daemon.git/commitdiff
Allow java jobs to have multiple classes
authorMarius Gavrilescu <marius@ieval.ro>
Sat, 7 Feb 2015 14:40:49 +0000 (16:40 +0200)
committerMarius Gavrilescu <marius@ieval.ro>
Sat, 7 Feb 2015 14:40:49 +0000 (16:40 +0200)
gruntmaster-compile

index d6425e905316ef1f563470aff219e88dabef384d..be900b9ac565fc4b2f2ac2b757b8f1710ae126c2 100755 (executable)
@@ -18,8 +18,9 @@ given ($format){
        }
        exec 'gmcs', '-d:ONLINE_JUDGE', $name when  'MONO';
        when ('JAVA') {
        }
        exec 'gmcs', '-d:ONLINE_JUDGE', $name when  'MONO';
        when ('JAVA') {
+               unlink $_ for <*.class>;
                system 'javac', $name and die "javac failed: errno=$! return=$?";
                system 'javac', $name and die "javac failed: errno=$! return=$?";
-               system 'jar', 'cfe', $basename, $basename, "$basename.class" and die "jar failed: errno=$! return=$?";
+               system 'jar', 'cfe', $basename, $basename, <*.class> and die "jar failed: errno=$! return=$?";
                chmod 0755, $basename;
                exit
        }
                chmod 0755, $basename;
                exit
        }
This page took 0.024716 seconds and 4 git commands to generate.