org.eclipse.jetty.toolchain.test
Class OS

java.lang.Object
  extended by org.eclipse.jetty.toolchain.test.OS

public final class OS
extends Object

Some simple OS specific utilities.


Field Summary
static boolean IS_LINUX
           
static boolean IS_OSX
           
static boolean IS_UNIX
           
static boolean IS_WINDOWS
           
static String LN
           
static String OS_NAME
           
 
Method Summary
static String separators(String path)
          Convert path separators to the System path separators.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

OS_NAME

public static final String OS_NAME

IS_WINDOWS

public static final boolean IS_WINDOWS

IS_OSX

public static final boolean IS_OSX

IS_LINUX

public static final boolean IS_LINUX

IS_UNIX

public static final boolean IS_UNIX

LN

public static final String LN
Method Detail

separators

public static String separators(String path)
Convert path separators to the System path separators.

This helps ensure that the paths provided in the unit tests work equally as well on unix / osx / windows.

Parameters:
path - the raw path to convert
Returns:
the converted path


Copyright © 1995-2012 Mort Bay Consulting. All Rights Reserved.