/** * @return True if the OS is a Linux derivate. */ public static boolean isLinux() { return getOS().startsWith( "Linux" ); }
public GPBulkLoader( StepMeta stepMeta, StepDataInterface stepDataInterface, int copyNr, TransMeta transMeta, Trans trans ) { super( stepMeta, stepDataInterface, copyNr, transMeta, trans ); if ( Const.getOS().startsWith( "Windows" ) ) { enclosure = "\""; } else { enclosure = "'"; } }
/** * @return True if the OS is a Windows derivate. */ public static boolean isWindows() { return getOS().startsWith( "Windows" ); }
/** * Adds quotes to the passed string if the OS is Windows and there is at least one space . * * @param string * @return */ private String addQuotes( String string ) { if ( Const.getOS().startsWith( "Windows" ) && string.indexOf( " " ) != -1 ) { string = "\"" + string + "\""; } return string; }
/** * @return True if the OS is an OSX derivate. */ public static boolean isOSX() { return getOS().toUpperCase().contains( "OS X" ); }
public static void setTableItemLook( TableItem item, Display disp ) { if ( !Const.getOS().startsWith( "Windows" ) ) { return; } Color background = GUIResource.getInstance().getColorBackground(); if ( background != null ) { item.setBackground( background ); } }
String ip = getIPAddress(); String mac = "none"; String os = getOS(); String s = ""; @SuppressWarnings( "unused" )
public static void setGCFont( GC gc, Device device, FontData fontData ) { if ( Const.getOS().startsWith( "Windows" ) ) { Font font = new Font( device, fontData ); gc.setFont( font ); font.dispose(); } else { gc.setFont( device.getSystemFont() ); } }
if ( Const.getOS().startsWith( "Windows" ) ) { sbCommandLine.append( "cmd /c " );
logBasic( BaseMessages.getString( PKG, "JobShell.RunningOn", Const.getOS() ) ); if ( Const.getOS().equals( "Windows 95" ) ) { base = new String[] { "command.com", "/C" }; if ( insertScript ) { fileObject = createTemporaryShellFile( tempFile, realScript ); } else if ( Const.getOS().startsWith( "Windows" ) ) { base = new String[] { "cmd.exe", "/C" }; if ( insertScript ) { if ( Const.getOS().equals( "Windows 95" ) || Const.getOS().startsWith( "Windows" ) ) { if ( Const.getOS().equals( "Windows 95" ) || Const.getOS().startsWith( "Windows" ) ) {
if ( Const.getOS().startsWith( "Windows" ) ) { return addQuotes( pathToFile ); } else {