org.nuxeo.connect.update.impl.task.guards
Class PlatformHelper
java.lang.Object
org.nuxeo.connect.update.impl.task.guards.PlatformHelper
public class PlatformHelper
- extends Object
This class can be used to check if the current platform match a given
platform. For example in a command you may want a guard that
TODO: define the platform string format.
- Author:
- Bogdan Stefanescu
PlatformHelper
public PlatformHelper()
getName
public String getName()
getVersion
public String getVersion()
matches
public boolean matches(String platform)
- Test whether or not the current platform is same as (or compatible) with
the given one.
isTomcat
public boolean isTomcat()
isJBoss
public boolean isJBoss()
isJetty
public boolean isJetty()
isWindows
public boolean isWindows()
isNotWindows
public boolean isNotWindows()
getFullName
public static String getFullName(String platform)
getPlatformKey
public static String getPlatformKey(String platform,
String version)
Copyright © 2011 Nuxeo SAS. All Rights Reserved.