updated java

This commit is contained in:
Brian Seymour 2018-10-05 21:31:36 -05:00
parent 37ba22baa1
commit a5d31dcf82
2 changed files with 2 additions and 2 deletions

View File

@ -1,5 +1,5 @@
cp /*.code interim.java
name=$(cat interim.java | grep -Eo 'public class ([A-Za-z0-9]+)' | cut -d' ' -f3)
name=$(cat interim.java | grep -Eo 'public\s+class\s+([A-Za-z0-9]+)' | cut -d' ' -f3)
mv interim.java $name.java
timeout -s KILL 10 javac $name.java
timeout -s KILL 3 java $name ${@:3}

View File

@ -13,7 +13,7 @@ from from EMKC contests and challenges. It's also used in the Engineer Man Disco
- `docker/execute <lang> <path to file>`
#### Supported Languages
Currently python2, python3, c, c++, go, node, ruby, r, c#, nasm, and php is supported.
Currently python2, python3, c, c++, go, node, ruby, r, c#, nasm, php, and java is supported.
#### Principle of Operation
Piston utilizes Docker as the primary mechanism for sandboxing. There is a small API written in Go which takes