Class GFLauncherUtils
java.lang.Object
com.sun.enterprise.universal.glassfish.GFLauncherUtils
Package private static utility methods
- Author:
- bnevins
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringfileListToPathString(List<File> files) static StringDeprecated.static Filestatic booleanisRelativePath(String path) Makes an educated guess on whether an arbitrary string is a relative path.static booleanstatic booleanstatic Stringstatic booleansafeExists(File f) static booleanstringToFiles(String cp) Convert a classpath like string, e.g.
-
Method Details
-
ok
-
safeExists
-
safeIsDirectory
-
getInstallDir
-
isWindows
public static boolean isWindows() -
getCanonicalHostName
Deprecated.This method returns the fully qualified name of the host. If the name can't be resolved (on windows if there isn't a domain specified), just host name is returned- Returns:
- Throws:
UnknownHostException- so it can be handled on a case by case basis
-
replace
-
isRelativePath
Makes an educated guess on whether an arbitrary string is a relative path. If the string really is a path, it should be 100% accurate. If it is an arbitrary string like, say, "hello/./world", then it will say that it is a relative path.- Parameters:
path- the path to check- Returns:
- true if the path is probably relative
-
stringToFiles
Convert a classpath like string, e.g. c:/a;c:/b, and convert to List of File- Parameters:
cp- The classpath-like string- Returns:
- the list of File
-
fileListToPathString
-