diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2017-07-09 10:49:57 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2017-07-09 10:49:57 +1200 |
commit | cc3d3021981a799c8c9d28dad4ad9bffa320a370 (patch) | |
tree | 8a1f5af8a5f5a6c12a658c9a466372337f9c01f1 /setup/java-test | |
parent | 526ae13099da044a0feeb5afc07563bea0f29c7f (diff) | |
download | traccar-server-cc3d3021981a799c8c9d28dad4ad9bffa320a370.tar.gz traccar-server-cc3d3021981a799c8c9d28dad4ad9bffa320a370.tar.bz2 traccar-server-cc3d3021981a799c8c9d28dad4ad9bffa320a370.zip |
Modify installation scripts
Diffstat (limited to 'setup/java-test')
-rw-r--r-- | setup/java-test/README.txt | 4 | ||||
-rw-r--r-- | setup/java-test/Test.java | 5 | ||||
-rw-r--r-- | setup/java-test/test.jar | bin | 0 -> 846 bytes |
3 files changed, 9 insertions, 0 deletions
diff --git a/setup/java-test/README.txt b/setup/java-test/README.txt new file mode 100644 index 000000000..b8ca72a7a --- /dev/null +++ b/setup/java-test/README.txt @@ -0,0 +1,4 @@ +Create Java version test: + +javac -target 6 -source 6 Test.java +jar cfe test.jar Test Test.class diff --git a/setup/java-test/Test.java b/setup/java-test/Test.java new file mode 100644 index 000000000..363d6953e --- /dev/null +++ b/setup/java-test/Test.java @@ -0,0 +1,5 @@ +public class Test { + public static void main(String[] a) { + System.exit(Integer.parseInt(System.getProperty("java.version").split("\\.")[1]) >= 7 ? 0 : 1); + } +} diff --git a/setup/java-test/test.jar b/setup/java-test/test.jar Binary files differnew file mode 100644 index 000000000..9bb41b3a0 --- /dev/null +++ b/setup/java-test/test.jar |