diff options
Diffstat (limited to 'bin/compile')
| -rwxr-xr-x | bin/compile | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/bin/compile b/bin/compile new file mode 100755 index 0000000..e5ad288 --- /dev/null +++ b/bin/compile @@ -0,0 +1,19 @@ +#!/usr/bin/env bash + +main() { + # Replace this with your local location for the Java SE 6 JDK + local JAVA_HOME=~/Downloads/jdk1.6.0_45 + + mkdir -p out + + find source -name "*.java" >sources.txt + + ${JAVA_HOME}/bin/javac -source 1.6 -target 1.6 -Xlint:none -d out @sources.txt + + jar cf out/worlds.jar -C out . + jar cfm out/worlds.jar MANIFEST.MF -C out . + + rm sources.txt +} + +main |