Compile/run/test Java

This commit is contained in:
2019-05-08 15:21:57 -04:00
parent df2cf4044e
commit 9e70b84b62
8 changed files with 27 additions and 17 deletions

View File

@@ -0,0 +1,6 @@
function java-compile-run
# javac -cp .:../algs4.jar $argv[1].java
# and java -cp .:../algs4.jar $argv[1]
javac $argv[1].java
and java $argv[1]
end

View File

@@ -0,0 +1,4 @@
function java-compile-test
javac -d out *.java
and java -jar /home/kevin/java/junit-platform-console-standalone-1.5.0-M1.jar --class-path "$CLASSPATH:out" --scan-class-path
end