add ant and java

This commit is contained in:
Frieder Schlesier 2016-09-13 10:34:33 +02:00
parent 96ea07159d
commit 3861474710
1 changed files with 31 additions and 0 deletions

View File

@ -69,6 +69,18 @@ android-studio() {
#exit 0; #exit 0;
} }
ant() {
local args=$@
local cur_dir=$(pwd)
local targetmount=$(basename $cur_dir)
docker run -it --rm \
-v $(pwd):/src/$targetmount \
-w /src/$targetmount \
fschl/ant \
"$args"
}
bro() { bro() {
docker run -it --rm \ docker run -it --rm \
fschl/bropages \ fschl/bropages \
@ -182,6 +194,25 @@ inkscape() {
exit 0; exit 0;
} }
java() {
local args=$@
local cur_dir=$(pwd)
local PROJECT=$(basename $cur_dir)
del_stopped java_$PROJECT
docker run -it \
--name="java_$PROJECT" \
-v $(pwd):/src/$PROJECT \
-w /src/$PROJECT \
-v /tmp/.X11-unix:/tmp/.X11-unix \
-e DISPLAY=unix$DISPLAY \
--net=host \
openjdk:8 \
bash -c "$args"
}
latex() { latex() {
del_stopped latex del_stopped latex