java-code-runner
Advanced tools
Comparing version 0.3.38 to 0.3.39
{ | ||
"name": "java-code-runner", | ||
"version": "0.3.38", | ||
"version": "0.3.39", | ||
"author": "Amr Draz", | ||
@@ -5,0 +5,0 @@ "repository": { |
@@ -1,2 +0,2 @@ | ||
This is a module for runinng Java from String inside a node server | ||
This is a module for runinng Java from String inside a node server built for another project called kodr | ||
@@ -14,14 +14,8 @@ to run tests | ||
Compile JavaRunner | ||
Compile using 'ant' | ||
javac JavaRunner.java | ||
Run server in bin | ||
Compile Server | ||
java -cp .:../lib/servlet-api-2.5.jar:../lib/jetty-all-7.0.2.v20100331.jar RunnerServlet | ||
javac -cp .:servlet-api-2.5.jar:jetty-all-7.0.2.v20100331.jar RunnerServlet.java | ||
Run server | ||
java -cp .:servlet-api-2.5.jar:jetty-all-7.0.2.v20100331.jar RunnerServlet | ||
The default port is `3678` | ||
@@ -64,6 +58,9 @@ | ||
###node wraper | ||
The module's index.js file exposes 3 methods | ||
The module's index.js file exposes 6 methods | ||
- `run` | ||
- `test` | ||
- `runClass` | ||
- `stopServer` | ||
- `runServer` | ||
- `recompile` which prgramatically compiles only once per process | ||
@@ -74,2 +71,2 @@ see tests for how they work. | ||
Look inot runing the java server as a docker container for security | ||
Look into runing the java server as a docker container for security |
1731985
1731
70