com.cloudbees.sdk.utils
Class Helper
java.lang.Object
com.cloudbees.sdk.utils.Helper
public class Helper
- extends Object
- Author:
- Fabian Donze
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Helper
public Helper()
promptForAppId
public static String promptForAppId()
throws IOException
- Throws:
IOException
promptFor
public static String promptFor(String message,
boolean cannotBeNull)
throws IOException
- Throws:
IOException
promptMatches
public static boolean promptMatches(String message,
String successPattern)
throws IOException
- Throws:
IOException
promptFor
public static String promptFor(String message)
throws IOException
- Throws:
IOException
loadProperties
public static boolean loadProperties(File propertyFile,
Properties properties)
deleteDirectory
public static void deleteDirectory(File dir)
deleteDirectoryOnExit
public static void deleteDirectoryOnExit(File dir)
copyFile
public static void copyFile(File from,
File to)
throws IOException
- Throws:
IOException
downloadFile
public static void downloadFile(String url,
String fileName)
throws IOException
- Throws:
IOException
getFiles
public static String[] getFiles(File dir,
String extension)
getPaddedString
public static String getPaddedString(String str,
int length)
getEnvironmentList
public static String[] getEnvironmentList(String environments,
String... prependEnvs)
setJVMProxySettings
public static void setJVMProxySettings(Properties properties)
Copyright © 2011-2013. All Rights Reserved.