| java.lang.Object com.ice.cvsc.CVSCUtilities
CVSCUtilities | public class CVSCUtilities extends Object (Code) | | Implements several general utility methods used by the cvs
client package.
version: $Revision: 2.11 $ author: Timothy Gerard Endres, time@ice.com. |
caseSensitivePathNames | public static boolean caseSensitivePathNames()(Code) | | |
computeTranslation | public static int computeTranslation(CVSEntry entry)(Code) | | |
createEmptyFile | public static boolean createEmptyFile(File f)(Code) | | |
endRedirectOutput | public static void endRedirectOutput()(Code) | | |
getLocalParent | public static String getLocalParent(String localDir)(Code) | | Given a localDirectory from a CVSEntry, get the
parent directory of the localDirectory.
|
isSubpathInPath | public static boolean isSubpathInPath(String rootPath, String subPath)(Code) | | This class method determines if a path exists 'within'
another path. In the cvsc package, we are constantly
checking to be sure that a directory is contained within
a given tree, or that a file is in the correct path.
The difficulty is that each platform has different
path separators and 'case' requirements. Worse, on
systems like Windoze, the user can type lower case,
while the FileDialog returns what may be upper case
on the file system. This method is an attempt to
normalize all of this.
Parameters: path - The shorter or parent path. Parameters: path - The longer or child path. True if subPath is a subdirectory of path. |
|
|