Compile/run/test Java
This commit is contained in:
6
dot_config/fish/functions/java-compile-run.fish
Normal file
6
dot_config/fish/functions/java-compile-run.fish
Normal 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
|
||||
4
dot_config/fish/functions/java-compile-test.fish
Normal file
4
dot_config/fish/functions/java-compile-test.fish
Normal 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
|
||||
Reference in New Issue
Block a user