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 d6425e9..be900b9 100755 (executable)
@@ -18,8 +18,9 @@ given ($format){
        }
        exec 'gmcs', '-d:ONLINE_JUDGE', $name when  'MONO';
        when ('JAVA') {
+               unlink $_ for <*.class>;
                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
        }
This page took 0.027501 seconds and 4 git commands to generate.