From: <pj...@us...> - 2009-10-24 04:21:42
|
Revision: 6896 http://jython.svn.sourceforge.net/jython/?rev=6896&view=rev Author: pjenvey Date: 2009-10-24 04:21:18 +0000 (Sat, 24 Oct 2009) Log Message: ----------- don't rely on jna directly as we'll likely swap to jffi/jnr-posix eventually Modified Paths: -------------- trunk/jython/src/org/python/core/util/PlatformUtil.java Modified: trunk/jython/src/org/python/core/util/PlatformUtil.java =================================================================== --- trunk/jython/src/org/python/core/util/PlatformUtil.java 2009-10-24 03:17:41 UTC (rev 6895) +++ trunk/jython/src/org/python/core/util/PlatformUtil.java 2009-10-24 04:21:18 UTC (rev 6896) @@ -1,9 +1,7 @@ -// Copyright (c) 2009 Jython project +/* Copyright (c) 2009 Jython project */ package org.python.core.util; -// Note: Sun does not sponsor the jna project, even though the package name -// might imply otherwise. -import com.sun.jna.Platform; +import org.jruby.ext.posix.util.Platform; /** * Methods for testing the platform/operating system that we are on. @@ -15,10 +13,10 @@ * where case insensitive means that a file that is stored as FOO * can be accessed as (for example) FoO. */ - //Currently we just check to see if we are on windows or macs, which are - //commonly (though not always!) case insensitive. There are certainly cases - //where this is not sufficient, like the case of mounted filesystems. public static boolean isCaseInsensitive() { - return Platform.isMac() || Platform.isWindows(); + // Currently we just check to see if we are on windows or macs, which are commonly + // (though not always!) case insensitive. There are certainly cases where this is + // not sufficient, like the case of mounted filesystems. + return Platform.IS_MAC || Platform.IS_WINDOWS; } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |