congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
Platforms.getCurrentPlatform
Code IndexAdd Tabnine to your IDE (free)

How to use
getCurrentPlatform
method
in
com.izforge.izpack.util.Platforms

Best Java code snippets using com.izforge.izpack.util.Platforms.getCurrentPlatform (Showing top 6 results out of 315)

origin: org.codehaus.izpack/izpack-core

  /**
   * Provides the current platform.
   *
   * @param platforms the platform factory
   * @return the current platform
   */
  public Platform provide(Platforms platforms)
  {
    return platforms.getCurrentPlatform();
  }
}
origin: org.codehaus.izpack/izpack-tools

/**
 * Returns the platform for the specified operating system name and architecture.
 * <p/>
 * This may query the underlying OS to determine the platform name.
 *
 * @param name the operating system name
 * @param arch the operating system architecture, or symbolic architecture
 * @return the corresponding platform
 */
public Platform getCurrentPlatform(String name, String arch)
{
  return getCurrentPlatform(name, arch, null);
}
origin: org.codehaus.izpack/izpack-tools

/**
 * Returns the current platform given the operating system name, architecture and version.
 * <p/>
 * This may query the underlying OS to determine the platform name.
 *
 * @param name    the operating system name
 * @param arch    the operating system architecture, or symbolic architecture
 * @param version the operating system version. May be {@code null}
 * @return the corresponding platform
 */
public Platform getCurrentPlatform(String name, String arch, String version)
{
  return getCurrentPlatform(name, arch, version, null);
}
origin: org.codehaus.izpack/izpack-tools

/**
 * Returns the current platform.
 * <p/>
 * This may query the underlying OS to determine the platform name.
 *
 * @return the current platform
 */
public Platform getCurrentPlatform()
{
  return getCurrentPlatform(System.getProperty(OsVersionConstants.OSNAME),
               System.getProperty(OsVersionConstants.OSARCH),
               System.getProperty(OsVersionConstants.OSVERSION),
               System.getProperty("java.version"));
}
origin: org.codehaus.izpack/izpack-installer

Platform platform = platforms.getCurrentPlatform();
TargetFactory factory = new TargetFactory(new DefaultTargetPlatformFactory(dummy, platform, platforms));
Librarian librarian = new Librarian(factory, new Housekeeper());
origin: org.codehaus.izpack/izpack-test-common

if (runOn != null)
  Platform platform = new Platforms().getCurrentPlatform();
  boolean found = false;
  for (Platform.Name name : runOn.value())
com.izforge.izpack.utilPlatformsgetCurrentPlatform

Javadoc

Returns the current platform.

This may query the underlying OS to determine the platform name.

Popular methods of Platforms

  • <init>
  • getArch
    Returns the platform family name given the operating system or symbolic name.
  • getName
    Returns the platform family name for the specified operating system name.
  • getPlatform
    Returns the platform given the operating system name, architecture and version.
  • equals
    Compares two strings for equality.
  • exists
    Determines if the specified path exists.
  • findMatch
    Attempts to find a platform that matches the platform name, architecture and version.
  • getCurrentOSName
    Returns the platform family name for the current operating system. This may query the underlying OS
  • getLinuxName
    Returns the Linux platform family name.
  • getReleasePath
    Returns the release info file path, for Linux distributions.
  • getText
    Returns the text from the specified file.
  • search
    Searches text for the specified string.
  • getText,
  • search

Popular in Java

  • Reactive rest calls using spring rest template
  • requestLocationUpdates (LocationManager)
  • addToBackStack (FragmentTransaction)
  • compareTo (BigDecimal)
  • FileInputStream (java.io)
    An input stream that reads bytes from a file. File file = ...finally if (in != null) in.clos
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • JOptionPane (javax.swing)
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • IsNull (org.hamcrest.core)
    Is the value null?
  • Top 25 Plugins for Webstorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now