[LIB-13] Rename some common classes
[chesshog-scanner.git] / src / main / java / org / hedgecode / chess / scanner / ChessHogScannerApp.java
index 618a802..060773c 100644 (file)
@@ -26,20 +26,17 @@ import org.hedgecode.chess.scanner.proxy.ProxyParams;
  */
 public final class ChessHogScannerApp {
 
-    public static void main(String[] args) throws ChessHogScannerException {
+    public static void main(String[] args) throws ScannerException {
 
-        ChessHogScannerConsole.init();
+        ScannerConsole.init();
 
-        boolean useProxy = Boolean.parseBoolean(
-                ChessHogScannerProperties.get("scanner.use.proxy")
-        );
+        boolean useProxy = ScannerProperties.is("scanner.use.proxy");
 
         if (useProxy) {
             ProxyParams proxyParams = new ProxyParams(
-                    ChessHogScannerProperties.get("scanner.proxy.server"),
-                    ChessHogScannerProperties.get("scanner.proxy.auth")
+                    ScannerProperties.get("scanner.proxy.server"),
+                    ScannerProperties.get("scanner.proxy.auth")
             );
-            ChessHogScannerConsole.console(proxyParams.toString());
             Proxy.setProxy(proxyParams);
         }