projects
/
gruntmaster-daemon.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Allow java jobs to have multiple classes
[gruntmaster-daemon.git]
/
gruntmaster-compile
diff --git
a/gruntmaster-compile
b/gruntmaster-compile
index d6425e905316ef1f563470aff219e88dabef384d..be900b9ac565fc4b2f2ac2b757b8f1710ae126c2 100755
(executable)
--- a/
gruntmaster-compile
+++ b/
gruntmaster-compile
@@
-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.009665 seconds
and
4
git commands to generate.