Break out the Java 6 executable support from GitIndex for reuse
commit1432c8b2ddbabdd285715fbe7a0be58e36014df5
authorShawn O. Pearce <spearce@spearce.org>
Fri, 28 Mar 2008 04:16:14 +0000 (28 00:16 -0400)
committerShawn O. Pearce <spearce@spearce.org>
Mon, 7 Apr 2008 05:06:26 +0000 (7 01:06 -0400)
treeef4bee5789936cfc37f6946f66a7964374e9eae1
parent7ad06a328cfd68ac88b37e95906186118e75ca63
Break out the Java 6 executable support from GitIndex for reuse

This code to support access to the executable flag is handy for
locations where we need such functionality but don't want to
require building with Java 6 to setup the method calls nor do we
want to dirty everyone with ugly reflection support.

On Win32 the executable flag is basically useless so we do not
ever support it there, even if the Java 6 JRE is being used and
the API is available.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
org.spearce.jgit/src/org/spearce/jgit/lib/GitIndex.java
org.spearce.jgit/src/org/spearce/jgit/util/FS.java [new file with mode: 0644]
org.spearce.jgit/src/org/spearce/jgit/util/FS_POSIX_Java5.java [new file with mode: 0644]
org.spearce.jgit/src/org/spearce/jgit/util/FS_POSIX_Java6.java [new file with mode: 0644]
org.spearce.jgit/src/org/spearce/jgit/util/FS_Win32.java [new file with mode: 0644]