public class FS_Win32_Cygwin extends FS_Win32
FS.FSFactory
Modifier | Constructor and Description |
---|---|
|
FS_Win32_Cygwin()
Constructor
|
protected |
FS_Win32_Cygwin(FS src)
Constructor
|
Modifier and Type | Method and Description |
---|---|
static boolean |
isCygwin() |
FS |
newInstance() |
File |
resolve(File dir,
String pn)
Resolve this file to its actual path name that the JRE can use.
|
ProcessBuilder |
runInShell(String cmd,
String[] args)
Initialize a ProcesssBuilder to run a command using the system shell.
|
protected File |
userHomeImpl()
Determine the user's home directory (location where preferences are).
|
canExecute, discoverGitPrefix, isCaseSensitive, retryFailedLockFileCommit, setExecute, supportsExecute
createSymLink, detect, detect, exists, gitPrefix, isDirectory, isFile, isHidden, isSymLink, lastModified, length, readPipe, readSymLink, searchPath, setGitPrefix, setHidden, setLastModified, setUserHome, supportsSymlinks, userHome
public FS_Win32_Cygwin()
protected FS_Win32_Cygwin(FS src)
src
- instance whose attributes to copypublic static boolean isCygwin()
public FS newInstance()
newInstance
in class FS_Win32
public File resolve(File dir, String pn)
FS
This method can be relatively expensive. Computing a translation may require forking an external process per path name translated. Callers should try to minimize the number of translations necessary by caching the results.
Not all platforms and JREs require path name translation. Currently only Cygwin on Win32 require translation for Cygwin based paths.
protected File userHomeImpl()
FS
userHomeImpl
in class FS_Win32
public ProcessBuilder runInShell(String cmd, String[] args)
FS
runInShell
in class FS_Win32
cmd
- command to execute. This string should originate from the
end-user, and thus is platform specific.args
- arguments to pass to command. These should be protected from
shell evaluation.Copyright © 2013. All Rights Reserved.