private InputStream getNextBestProfile(Generation systemGeneration, String javaEdition, Version javaVersion, String embeddedProfileName) { if (javaVersion == null || (javaEdition != J2SE && javaEdition != JAVASE)) return null; // we cannot automatically choose the next best profile unless this is a J2SE or JavaSE vm InputStream bestProfile = findNextBestProfile(systemGeneration, javaEdition, javaVersion, embeddedProfileName); if (bestProfile == null && javaEdition == JAVASE) // if this is a JavaSE VM then search for a lower J2SE profile bestProfile = findNextBestProfile(systemGeneration, J2SE, javaVersion, embeddedProfileName); if (bestProfile == null && !"-".equals(embeddedProfileName)) { //$NON-NLS-1$ // Just use the base javaEdition name without the profile name as backup return getNextBestProfile(systemGeneration, javaEdition, javaVersion, "-"); //$NON-NLS-1$ } return bestProfile; }
private InputStream getNextBestProfile(Generation systemGeneration, String javaEdition, Version javaVersion, String embeddedProfileName) { if (javaVersion == null || (javaEdition != J2SE && javaEdition != JAVASE)) return null; // we cannot automatically choose the next best profile unless this is a J2SE or JavaSE vm InputStream bestProfile = findNextBestProfile(systemGeneration, javaEdition, javaVersion, embeddedProfileName); if (bestProfile == null && javaEdition == JAVASE) // if this is a JavaSE VM then search for a lower J2SE profile bestProfile = findNextBestProfile(systemGeneration, J2SE, javaVersion, embeddedProfileName); if (bestProfile == null && !"-".equals(embeddedProfileName)) { //$NON-NLS-1$ // Just use the base javaEdition name without the profile name as backup return getNextBestProfile(systemGeneration, javaEdition, javaVersion, "-"); //$NON-NLS-1$ } return bestProfile; }
private InputStream getNextBestProfile(Generation systemGeneration, String javaEdition, Version javaVersion, String embeddedProfileName) { if (javaVersion == null || (javaEdition != J2SE && javaEdition != JAVASE)) return null; // we cannot automatically choose the next best profile unless this is a J2SE or JavaSE vm InputStream bestProfile = findNextBestProfile(systemGeneration, javaEdition, javaVersion, embeddedProfileName); if (bestProfile == null && javaEdition == JAVASE) // if this is a JavaSE VM then search for a lower J2SE profile bestProfile = findNextBestProfile(systemGeneration, J2SE, javaVersion, embeddedProfileName); if (bestProfile == null && !"-".equals(embeddedProfileName)) { //$NON-NLS-1$ // Just use the base javaEdition name without the profile name as backup return getNextBestProfile(systemGeneration, javaEdition, javaVersion, "-"); //$NON-NLS-1$ } return bestProfile; }
private InputStream getNextBestProfile(Generation systemGeneration, String javaEdition, Version javaVersion, String embeddedProfileName) { if (javaVersion == null || (javaEdition != J2SE && javaEdition != JAVASE)) return null; // we cannot automatically choose the next best profile unless this is a J2SE or JavaSE vm InputStream bestProfile = findNextBestProfile(systemGeneration, javaEdition, javaVersion, embeddedProfileName); if (bestProfile == null && javaEdition == JAVASE) // if this is a JavaSE VM then search for a lower J2SE profile bestProfile = findNextBestProfile(systemGeneration, J2SE, javaVersion, embeddedProfileName); if (bestProfile == null && !"-".equals(embeddedProfileName)) { //$NON-NLS-1$ // Just use the base javaEdition name without the profile name as backup return getNextBestProfile(systemGeneration, javaEdition, javaVersion, "-"); //$NON-NLS-1$ } return bestProfile; }
private InputStream getNextBestProfile(Generation systemGeneration, String javaEdition, Version javaVersion, String embeddedProfileName) { if (javaVersion == null || javaEdition != JAVASE) return null; // we cannot automatically choose the next best profile unless this is a JavaSE vm InputStream bestProfile = findNextBestProfile(systemGeneration, javaEdition, javaVersion, embeddedProfileName); if (bestProfile == null && !"-".equals(embeddedProfileName)) { //$NON-NLS-1$ // Just use the base javaEdition name without the profile name as backup return getNextBestProfile(systemGeneration, javaEdition, javaVersion, "-"); //$NON-NLS-1$ } return bestProfile; }
private InputStream getNextBestProfile(Generation systemGeneration, String javaEdition, Version javaVersion, String embeddedProfileName) { if (javaVersion == null || javaEdition != JAVASE) return null; // we cannot automatically choose the next best profile unless this is a JavaSE vm InputStream bestProfile = findNextBestProfile(systemGeneration, javaEdition, javaVersion, embeddedProfileName); if (bestProfile == null && !"-".equals(embeddedProfileName)) { //$NON-NLS-1$ // Just use the base javaEdition name without the profile name as backup return getNextBestProfile(systemGeneration, javaEdition, javaVersion, "-"); //$NON-NLS-1$ } return bestProfile; }