private void catchWindows32BitUsers() { PlatformDetector pd = new PlatformDetector(); if (pd.getOs().equals(PlatformDetector.OS_WINDOWS) && pd.getArch().equals(PlatformDetector.ARCH_X86_32)) { throw new UnsupportedOperationException( "Xgboost is not available for 32bit Windows operating systems. Please use a 64bit version."); } }
/** * Set the byte order. TreeTagger models are sensitive to the byte order. This should only be * used in test cases. * * @param aByteOrder * the byte order. */ public void setByteOrder(final ByteOrder aByteOrder) { updatePlatform(_os, _arch, aByteOrder); }
try { manifestUrl = resolveLocation( baseLocation + platformDetector.getPlatformId() + "/manifest.properties", this, null); platformId = platformDetector.getPlatformId(); && PlatformDetector.ARCH_X86_64.equals(platformDetector.getArch())) { fallbackTo32Tried = true; try { manifestUrl = resolveLocation(baseLocation + platformDetector.getOs() + "-" + PlatformDetector.ARCH_X86_32 + "/manifest.properties", this, null); platformId = platformDetector.getOs() + "-" + PlatformDetector.ARCH_X86_32; sb.append("No files found for [").append(platformDetector.getPlatformId()) .append("]"); if (fallbackTo32Tried) { log.warn("No binaries found for [" + platformDetector.getPlatformId() + "], using [" + platformId + "] instead");
private static boolean isWindows() { return CrfSuite.getPlatformDetector().getPlatformId() .startsWith(PlatformDetector.OS_WINDOWS); }
public RuntimeProvider(String aBaseLocation) { setBaseLocation(aBaseLocation); platformDetector = new PlatformDetector(); }
protected static boolean isWindows() { return CrfSuite.getPlatformDetector().getPlatformId() .startsWith(PlatformDetector.OS_WINDOWS); }
private static void catchWindows32BitUsers() { PlatformDetector pd = new PlatformDetector(); if (pd.getOs().equals(PlatformDetector.OS_WINDOWS) && pd.getArch().equals(PlatformDetector.ARCH_X86_32)) { throw new UnsupportedOperationException( "VowpalWabbit is not available for 32bit Windows operating systems. Please use a 64bit version."); } }
protected static boolean isWindows() { return VowpalWabbit.getPlatformDetector().getPlatformId() .startsWith(PlatformDetector.OS_WINDOWS); }
/** * Override the operating system name. This should only be used in test cases. * * @param aOs * an OS name as could be found in the os.name system property. */ public void setOs(final String aOs) { updatePlatform(aOs, _arch, _byteOrder); }
protected void catchWindows32BitUsers() { PlatformDetector pd = new PlatformDetector(); if (pd.getOs().equals(PlatformDetector.OS_WINDOWS) && pd.getArch().equals(PlatformDetector.ARCH_X86_32)) { throw new UnsupportedOperationException( "Xgboost is not available for 32bit Windows operating systems. Please use a 64bit version."); } }
public static File getExecutable() throws Exception { if (runtimeProvider == null) { String platform = detector.getPlatformId(); LogFactory.getLog(CrfSuiteTestTask.class.getName()) .info("Load binary for platform: [" + platform + "]"); runtimeProvider = new RuntimeProvider(classpath); } return runtimeProvider.getFile("crfsuite"); }
/** * Override the architecture. This should only be used in test cases. * * @param aArch * {@literal "big-endian"} for PowerPC or Sparc systems or {@literal "little-endian"} * for x86 systems. */ public void setArch(final String aArch) { updatePlatform(_os, aArch, _byteOrder); }
public File getExecutable() throws Exception { if (runtimeProvider == null) { String platform = detector.getPlatformId(); LogFactory.getLog(CrfSuiteTestTask.class.getName()) .info("Load binary for platform: [" + platform + "]"); runtimeProvider = new RuntimeProvider(classpath); } return runtimeProvider.getFile("crfsuite"); }
public File getExecutable() throws Exception { catchWindows32BitUsers(); if (runtimeProvider == null) { String platform = detector.getPlatformId(); LogFactory.getLog(VowpalWabbitTestTask.class.getName()) .info("Load binary for platform: [" + platform + "]"); runtimeProvider = new RuntimeProvider(classpath); } return runtimeProvider.getFile("vw"); }