From: Marius Gavrilescu Date: Sat, 7 Feb 2015 14:40:49 +0000 (+0200) Subject: Allow java jobs to have multiple classes X-Git-Tag: 5999.000_005~48 X-Git-Url: http://git.ieval.ro/?a=commitdiff_plain;ds=sidebyside;h=95379e40e45ab2cc445a81b32555a7da9e193bac;p=gruntmaster-daemon.git Allow java jobs to have multiple classes --- diff --git a/gruntmaster-compile b/gruntmaster-compile index d6425e9..be900b9 100755 --- a/gruntmaster-compile +++ b/gruntmaster-compile @@ -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 }