Esempio n. 1
0
  /** change the network settings to enable use of our proxy */
  public void changeNetworkSettings() {
    if (networkService == null) {
      getCurrentNetworkSettings();
    }
    customProxyPACDir = LauncherUtils.createCustomProfileDir(sessionId);
    if (customProxyPACDir.exists()) {
      FileHandler.delete(customProxyPACDir);
    }
    customProxyPACDir.mkdir();
    log.info("Modifying OS X global network settings...");
    // TODO Disable proxy PAC URL (or, even better, use one!) SRC-364

    runNetworkSetup("-setwebproxy", networkService, "localhost", "" + port);

    runNetworkSetup("-setproxybypassdomains", networkService, "Empty");
  }
Esempio n. 2
0
 /** Delete a directory and all subdirectories */
 public static void recursivelyDeleteDir(File customProfileDir) {
   FileHandler.delete(customProfileDir);
 }