/** * Determines if the OS on which Ant is executing matches the * given OS architecture. * * @param arch the OS architecture to check for * @return true if the OS matches * */ public static boolean isArch( String arch ) { return isOs( null, null, arch, null ); }
/** * Determines if the OS on which Ant is executing matches the * given OS name. * * @param name the OS name to check for * @return true if the OS matches * */ public static boolean isName( String name ) { return isOs( null, name, null, null ); }
/** * Determines if the OS on which Ant is executing matches the * given OS version. * * @param version the OS version to check for * @return true if the OS matches * */ public static boolean isVersion( String version ) { return isOs( null, null, null, version ); }
/** * Determines if the OS on which Ant is executing matches the type of * that set in setFamily. * * @return true if the os matches. * @see Os#setFamily(String) */ boolean eval() { return isOs( family, null, null, null ); }
/** * Determines if the OS on which Ant is executing matches the * given OS family. * * @param family the family to check for * @return true if the OS matches * */ public static boolean isFamily( String family ) { return isOs( family, null, null, null ); }