Search in sources :

Example 6 with Release

use of org.cytoscape.app.internal.net.WebApp.Release in project cytoscape-impl by cytoscape.

the class AbstractAppTask method getVersion.

protected String getVersion(WebApp webApp) {
    List<Release> releases = webApp.getReleases();
    Collections.sort(releases);
    Release release = releases.get(releases.size() - 1);
    return release.getReleaseVersion();
}
Also used : Release(org.cytoscape.app.internal.net.WebApp.Release)

Aggregations

Release (org.cytoscape.app.internal.net.WebApp.Release)6 File (java.io.File)2 IOException (java.io.IOException)2 HashSet (java.util.HashSet)2 LinkedList (java.util.LinkedList)2 App (org.cytoscape.app.internal.manager.App)2 FileOutputStream (java.io.FileOutputStream)1 InputStream (java.io.InputStream)1 HttpURLConnection (java.net.HttpURLConnection)1 MalformedURLException (java.net.MalformedURLException)1 URL (java.net.URL)1 URLConnection (java.net.URLConnection)1 FileChannel (java.nio.channels.FileChannel)1 ReadableByteChannel (java.nio.channels.ReadableByteChannel)1 ArrayList (java.util.ArrayList)1 HashMap (java.util.HashMap)1 List (java.util.List)1 Set (java.util.Set)1 AppDownloadException (org.cytoscape.app.internal.exception.AppDownloadException)1 WebApp (org.cytoscape.app.internal.net.WebApp)1