X-Git-Url: http://git.ieval.ro/?p=gruntmaster-daemon.git;a=blobdiff_plain;f=gruntmaster-compile;h=be900b9ac565fc4b2f2ac2b757b8f1710ae126c2;hp=d6425e905316ef1f563470aff219e88dabef384d;hb=fcfcfb939965f2536e812d3138a208008b1eb601;hpb=9c1ab9145b96eba0eff66a8679e0d5665a115eda 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 }