summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authormd_5 <git@md-5.net>2018-04-04 16:56:25 +1000
committermd_5 <git@md-5.net>2018-04-04 16:56:25 +1000
commit944d7974c7e9303ce077a98e158d4d60e6f60c6e (patch)
tree6ec974196799a074cab2620b46acf8158f068e11 /src
parent3346dd943d9f948af718548e53e678a3018d60ab (diff)
downloadbuildtools-944d7974c7e9303ce077a98e158d4d60e6f60c6e.tar
buildtools-944d7974c7e9303ce077a98e158d4d60e6f60c6e.tar.gz
buildtools-944d7974c7e9303ce077a98e158d4d60e6f60c6e.tar.lz
buildtools-944d7974c7e9303ce077a98e158d4d60e6f60c6e.tar.xz
buildtools-944d7974c7e9303ce077a98e158d4d60e6f60c6e.zip
Add warning message for too recent java versions
Diffstat (limited to 'src')
-rw-r--r--src/main/java/org/spigotmc/builder/Bootstrap.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main/java/org/spigotmc/builder/Bootstrap.java b/src/main/java/org/spigotmc/builder/Bootstrap.java
index 5899eb2..aed1838 100644
--- a/src/main/java/org/spigotmc/builder/Bootstrap.java
+++ b/src/main/java/org/spigotmc/builder/Bootstrap.java
@@ -20,6 +20,12 @@ public class Bootstrap
System.err.println( "*** WARNING *** You may use java -version to double check your Java version." );
}
+ if ( javaVersion < 54.0 )
+ {
+ System.err.println( "*** WARNING *** Unsupported Java detected (" + javaVersion + "). BuildTools has only been tested up to Java 10. Use of development Java version is not supported." );
+ System.err.println( "*** WARNING *** You may use java -version to double check your Java version." );
+ }
+
Builder.main( args );
}
}