All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.excelsiorjet.JetEdition Maven / Gradle / Ivy

Go to download

Excelsior JET Maven Plugin provides Maven users with an easy way to compile their applications down to optimized native Windows, OS X, or Linux executables with Excelsior JET.

There is a newer version: 1.3.3
Show newest version
/*
 * Copyright (c) 2015, Excelsior LLC.
 *
 *  This file is part of Excelsior JET Maven Plugin.
 *
 *  Excelsior JET Maven Plugin is free software:
 *  you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation, either version 3 of the License, or
 *  (at your option) any later version.
 *
 *  Excelsior JET Maven Plugin is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with Excelsior JET Maven Plugin.
 *  If not, see .
 *
 */
package com.excelsiorjet;

import org.apache.maven.plugin.logging.SystemStreamLog;

import java.util.Arrays;
import java.util.Collection;

/**
 * Excelsior JET Edition enum.
 *
 * @author Nikita Lipsky
 */
public enum JetEdition {
    EVALUATION("Evaluation"),
    STANDARD("Standard Edition"),
    PROFESSIONAL("Professional Edition"),
    ENTERPRISE("Enterprise Edition"),
    EMBEDDED("Embedded Edition"),
    EMBEDDED_EVALUATION("Embedded Evaluation");

    private final String fullName;

    JetEdition(String fullName) {
        this.fullName = fullName;
    }

    /**
     * Examples: "Enterprise Edition", "Embedded Evaluation".
     */
    public String fullEditionName() {
        return fullName;
    }

    static JetEdition retrieveEdition(String version) {
        return Arrays.stream(JetEdition.values())
                .filter(e -> version.contains(e.fullEditionName()))
                .findFirst()
                .orElse(null);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy