@Test public void exitOnLowerJavaVersion() throws Exception { System.setProperty("java.version", "1.7"); exit.expectSystemExitWithStatus(-1); requireMinimumJavaVersion(); }
static void requireMinimumJavaVersion() { if (isNotSupportedVersion(System.getProperty("java.version"))) { System.err.println("Nexus requires minimum java.version: " + MINIMUM_JAVA_VERSION); if (versionCheckRequired()) { System.exit(-1); } } }
NexusMain extends org.apache.karaf.main.Main { static void requireMinimumJavaVersion() { if (isNotSupportedVersion(System.getProperty("java.version"))) { System.err.println("Nexus requires minimum java.version: " + MINIMUM_JAVA_VERSION); if (versionCheckRequired()) { System.exit(-1); } } } }
NexusMain extends org.apache.karaf.main.Main { static void requireMinimumJavaVersion() { if (isNotSupportedVersion(System.getProperty("java.version"))) { System.err.println("Nexus requires minimum java.version: " + MINIMUM_JAVA_VERSION); if (versionCheckRequired()) { System.exit(-1); } } } NexusMain(final String[] args); }
NexusMain extends org.apache.karaf.main.Main { static void requireMinimumJavaVersion() { if (isNotSupportedVersion(System.getProperty("java.version"))) { System.err.println("Nexus requires minimum java.version: " + MINIMUM_JAVA_VERSION); if (versionCheckRequired()) { System.exit(-1); } } } NexusMain(final String[] args); static void main(final String[] args); @Override void launch(); }
NexusMain extends org.apache.karaf.main.Main { static void requireMinimumJavaVersion() { if (isNotSupportedVersion(System.getProperty("java.version"))) { System.err.println("Nexus requires minimum java.version: " + MINIMUM_JAVA_VERSION); if (versionCheckRequired()) { System.exit(-1); } } } NexusMain(final String[] args); static void main(final String[] args); @Override void launch();  }