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

org.hidetake.groovy.ssh.Release.groovy Maven / Gradle / Ivy

There is a newer version: 2.11.2
Show newest version
package org.hidetake.groovy.ssh

import com.jcraft.jsch.JSch

/**
 * Release metadata.
 *
 * @author Hidetake Iwata
 */
class Release {

    private final bundle = ResourceBundle.getBundle(Release.class.name)

    final String name = bundle.getString('product.name')
    final String version = bundle.getString('product.version')

    final String javaVersion = System.getProperty('java.version')
    final String groovyVersion = GroovySystem.version
    final String jschVersion = JSch.VERSION

    @Override
    String toString() {
        "$name-$version (java-$javaVersion, groovy-$groovyVersion, jsch-$jschVersion)"
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy