public class RegistryInstallerUtils extends Object
Constructor and Description |
---|
RegistryInstallerUtils() |
Modifier and Type | Method and Description |
---|---|
static void |
bailOutMissingOption(String option) |
static void |
bailOutWithMessage(String msg) |
static void |
copy(Path from,
Path to) |
static void |
copyAll(String fromDir,
String toDir) |
static void |
copyAllType(String fromDir,
String toDir,
String ext) |
static void |
copyDir(String fromDir,
String toDir) |
static void |
createFile(Path filePath) |
static boolean |
deleteDirectory(File path) |
static void |
flushConsole() |
static String |
getFileContents(Path filePath) |
static InstallerPresets |
getInstallerPresets() |
static String |
getPreset(String key) |
static boolean |
isLocalPortAvailable(int port)
Returns true if the specified (local) port is available for use by SEARCH.
|
static boolean |
isPresetValue(String key) |
static boolean |
isRemotePortListening(String hostname,
int port)
Returns true if the specified (remote) port is available for use by SEARCH.
|
static void |
mkDir(String dir) |
static void |
mkDirs(String dir) |
static void |
openUpPermissions(String filePath) |
static void |
print(String msg) |
static String |
readLine(String fmt,
String defaultValue) |
static char[] |
readPassword(String fmt) |
static String |
readRequiredLine(String fmt,
String requireValueMsg) |
static void |
safeClose(Closeable obj) |
static void |
safeClose(Process proc) |
static boolean |
serverListening(String host,
int port)
Checks to see if a server is listening on the specified port.
|
static void |
writeToFile(Path filePath,
String content) |
public static void mkDir(String dir)
public static void mkDirs(String dir)
public static void bailOutMissingOption(String option)
public static void bailOutWithMessage(String msg)
public static boolean deleteDirectory(File path)
public static char[] readPassword(String fmt)
public static void flushConsole()
public static boolean isPresetValue(String key)
public static boolean isLocalPortAvailable(int port)
public static boolean isRemotePortListening(String hostname, int port)
public static boolean serverListening(String host, int port)
public static void copyDir(String fromDir, String toDir) throws IOException
IOException
public static void print(String msg)
public static void openUpPermissions(String filePath) throws IOException
IOException
public static String getFileContents(Path filePath) throws IOException
IOException
public static void writeToFile(Path filePath, String content) throws IOException
IOException
public static void createFile(Path filePath) throws IOException
IOException
public static InstallerPresets getInstallerPresets()
public static void safeClose(Process proc)
public static void safeClose(Closeable obj)
Copyright © 2019. All rights reserved.