Advertisement
Guest User

config game

a guest
Aug 8th, 2017
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 16.28 KB | None | 0 0
  1. package common;
  2.  
  3. import java.io.BufferedReader;
  4. import java.io.BufferedWriter;
  5. import java.io.File;
  6. import java.io.FileReader;
  7. import java.io.FileWriter;
  8. import java.io.IOException;
  9. import java.io.PrintStream;
  10. import java.util.ArrayList;
  11. import java.util.Calendar;
  12.  
  13. import common.console.Console;
  14. import common.console.Log;
  15.  
  16. public class Config {
  17.  
  18.     public static String IP = "127.0.0.1";
  19.     public static int SERVER_ID = 1;
  20.     //LoginDB
  21.     public static String LOGIN_DB_HOST = "127.0.0.1";
  22.     public static String LOGIN_DB_USER = "root";
  23.     public static String LOGIN_DB_PASS = "";
  24.     public static String LOGIN_DB_NAME = "fenrys_login";
  25.     //ServerDB
  26.     public static String SERVER_DB_HOST = "127.0.0.1";
  27.     public static String SERVER_DB_USER = "root";
  28.     public static String SERVER_DB_PASS = "";
  29.     public static String SERVER_DB_NAME = "fenrys_server";
  30.     //CommonDB
  31.     public static String COMMON_DB_HOST = "127.0.0.1";
  32.     public static String COMMON_DB_USER = "root";
  33.     public static String COMMON_DB_PASS = "";
  34.     public static String COMMON_DB_NAME = "fenrys_common";
  35.    
  36.     public static long FLOOD_TIME;
  37.     //public static String GAMESERVER_IP;
  38.     public static String CONFIG_MOTD = "";
  39.     public static String CONFIG_MOTD_COLOR = "C10000";
  40.     public static boolean CONFIG_DEBUG = true;
  41.     public static boolean CONFIG_POLICY = false;
  42.     public static int CONFIG_REALM_PORT = 444;
  43.     public static int CONFIG_GAME_PORT  = 5555;
  44.     public static int CONFIG_MAX_PERSOS = 5;
  45.     public static int CONFIG_START_MAP = 10298;
  46.     public static int CONFIG_START_CELL = 314;
  47.     public static int CONFIG_MAX_MULTI = 1;
  48.     public static int CONFIG_START_LEVEL = 1;
  49.     public static int CONFIG_START_KAMAS = 0;
  50.     public static int CONFIG_SAVE_TIME = 60*60*1000;
  51.     public static int CONFIG_DROP = 1;
  52.     public static boolean CONFIG_ZAAP_ANK = false;
  53.     public static boolean CONFIG_ZAAP_INC = false;
  54.     public static int CONFIG_LOAD_DELAY = 60000;
  55.     public static int CONFIG_PLAYER_LIMIT = -1;
  56.     public static boolean CONFIG_IP_LOOPBACK = true;
  57.     public static int XP_PVP = 10;
  58.     public static int XP_PVM = 1;
  59.     public static int KAMAS = 1;
  60.     public static int HONOR = 1;
  61.     public static int XP_METIER = 1;
  62.     public static boolean CONFIG_CUSTOM_STARTMAP;
  63.     public static boolean CONFIG_USE_MOBS = false;
  64.     public static boolean CONFIG_USE_IP = false;
  65.    
  66.     /*MARTHIEUBEAN*/
  67.     public static int CONFIG_ARENA_TIMER = 10*60*1000;
  68.     public static int CONFIG_START_ITEM = 0;
  69.     public static int CONFIG_POINT_PER_LEVEL = 1;
  70.     public static int CONFIG_ACTION_PORT = 445;
  71.     public static int CONFIG_LEVEL_FOR_POINT = 1;
  72.     public static int MAX_LEVEL = 200;
  73.     public static int CONFIG_BEGIN_TIME = 45*1000;
  74.     public static int CONFIG_ZAAPI_COST = 10;
  75.     public static ArrayList<Integer> arenaMap = new ArrayList<Integer>(8);
  76.     public static int CONFIG_SHOP_MAPID;
  77.     public static int CONFIG_SHOP_CELLID;
  78.     public static int CONFIG_COMMERCE_TIMER = 1*60*1000;
  79.     public static int CONFIG_DB_COMMIT = 30*1000;
  80.     public static boolean CONFIG_COMPILED_MAP = true;
  81.     public static int TIME_BY_TURN  = 45*1000;
  82.     public static int LOGGER_BUFFER_SIZE = 20;
  83.     public static String BASE_GUILD_SPELL = "451;0|452;0|453;0|454;0|455;0|456;0|457;0|458;0|459;0|460;0|461;0|462;0";
  84.     public static String BASE_GUILD_STAT = "124;100|158;1000|176;100";
  85.     public static String UNIVERSAL_PASSWORD = "marthieubeanFalyptus";
  86.     public static ArrayList<Integer> NOTINHDV = new ArrayList<Integer>();
  87.     /*FIN*/
  88.    
  89.     public static boolean CONFIG_USE_CMD = true;
  90.     public static int CONFIG_RCON_PORT = 6666;
  91.     public static String CONFIG_KEY_RCON = "xKey";
  92.     public static String AUTH_KEY = "default";
  93.     public static String LOGINSERVER_IP = "127.0.0.1";
  94.     public static int CONFIG_LINK_PORT = 489;
  95.     public static long CONFIG_MAX_IDLE_TIME = 1800000;
  96.     public static String SERVER_NAME = "Jiva";
  97.    
  98.     public static final String CONFIG_NAME = "config.properties";
  99.    
  100.     /*public static void loadConfigurationFile() {
  101.         Properties config = new Properties();
  102.         FileInputStream inStream = null;
  103.  
  104.         try {
  105.             inStream = new FileInputStream(CONFIG_NAME);
  106.             config.load(inStream);
  107.         } catch (FileNotFoundException e) {
  108.             e.printStackTrace();
  109.         } catch (IOException e) {
  110.             e.printStackTrace();
  111.         } finally {
  112.             try {
  113.                 inStream.close();
  114.             } catch (IOException e) {
  115.                 e.printStackTrace();
  116.             }
  117.         }
  118.  
  119.  
  120.         Config.CONFIG_DEBUG = Boolean.valueOf(config.getProperty("DEBUG"));
  121.         Config.CONFIG_POLICY = Boolean.valueOf(config.getProperty("SEND_POLICY"));
  122.        
  123.         Config.CONFIG_CUSTOM_STARTMAP =
  124.         Config.CONFIG_START_KAMAS =
  125.         Config.CONFIG_START_LEVEL =
  126.         Config.CONFIG_START_MAP =
  127.         Config.CONFIG_START_CELL =
  128.         Config.HONOR =
  129.         Config.CONFIG_SAVE_TIME = //*60*1000
  130.         Config.XP_PVM =
  131.         Config.XP_PVP =
  132.         Config.CONFIG_DROP =
  133.         Config.CONFIG_IP_LOOPBACK =
  134.         Config.CONFIG_ZAAP_ANK =
  135.         Config.CONFIG_ZAAP_INC =
  136.         Config.CONFIG_USE_IP =
  137.         Config.CONFIG_MOTD =
  138.         Config.CONFIG_MOTD_COLOR =
  139.         Config.XP_METIER =
  140.         Config.FLOOD_TIME = //*1000
  141.        
  142.         Config.SERVER_ID =
  143.         Config.IP =
  144.         Config.CONFIG_GAME_PORT =
  145.         Config.CONFIG_REALM_PORT =
  146.         Config.SERVER_DB_HOST =
  147.         Config.SERVER_DB_USER =
  148.         Config.SERVER_DB_PASS = //ALLOW EMPTY
  149.         Config.SERVER_DB_NAME =
  150.         Config.COMMON_DB_HOST =
  151.         Config.COMMON_DB_USER =
  152.         Config.COMMON_DB_PASS = //allow empty
  153.         Config.COMMON_DB_NAME =
  154.         Config.CONFIG_MAX_PERSOS =
  155.         Config.CONFIG_USE_MOBS =
  156.         Config.CONFIG_MAX_MULTI =
  157.         Config.CONFIG_PLAYER_LIMIT =
  158.         Config.CONFIG_ACTION_PORT =
  159.         Config.CONFIG_START_ITEM =
  160.         Config.CONFIG_POINT_PER_LEVEL =
  161.         Config.CONFIG_LEVEL_FOR_POINT =
  162.         Config.CONFIG_BEGIN_TIME //*1000
  163.         /*for(final String curID : value.split(","))
  164.         {
  165.             Config.arenaMap.add(Integer.parseInt(curID));
  166.         }/*
  167.         Config.CONFIG_ARENA_TIMER = //*60*1000
  168.         Config.CONFIG_COMMERCE_TIMER = //*60*1000
  169.         Config.CONFIG_COMPILED_MAP =
  170.         Config.TIME_BY_TURN = //*1000
  171.         Config.BASE_GUILD_SPELL =
  172.         Config.CONFIG_SHOP_MAPID =
  173.         Config.CONFIG_SHOP_CELLID =
  174.         Config.UNIVERSAL_PASSWORD =
  175.         /*for(final String curID : value.split(","))
  176.         {
  177.             Config.NOTINHDV.add(Integer.parseInt(curID));
  178.         }/*
  179.         Config.CONFIG_USE_CMD =
  180.         Config.CONFIG_RCON_PORT =
  181.         Config.SERVER_NAME =
  182.         Config.AUTH_KEY =
  183.     }*/
  184.    
  185.     public static void loadConfiguration()
  186.     {
  187.         boolean log = false;
  188.         try {
  189.             final BufferedReader config = new BufferedReader(new FileReader("config.txt"));
  190.             String line = "";
  191.             while ((line=config.readLine())!=null)
  192.             {
  193.                 if(line.split("=").length == 1) continue ;
  194.                 final String param = line.split("=")[0].trim();
  195.                 String value = line.split("=")[1].trim();
  196.                 if(param.equalsIgnoreCase("DEBUG"))
  197.                 {
  198.                     if(value.equalsIgnoreCase("true"))
  199.                     {
  200.                         Config.CONFIG_DEBUG = true;
  201.                     }
  202.                 }else if(param.equalsIgnoreCase("SEND_POLICY"))
  203.                 {
  204.                     if(value.equalsIgnoreCase("true"))
  205.                     {
  206.                         Config.CONFIG_POLICY = true;
  207.                     }
  208.                 }else if(param.equalsIgnoreCase("LOG"))
  209.                 {
  210.                     if(value.equalsIgnoreCase("true"))
  211.                     {
  212.                         log = true;
  213.                     }
  214.                 }else if(param.equalsIgnoreCase("USE_CUSTOM_START"))
  215.                 {
  216.                     if(value.equalsIgnoreCase("true"))
  217.                     {
  218.                         Config.CONFIG_CUSTOM_STARTMAP = true;
  219.                     }
  220.                 }else if(param.equalsIgnoreCase("START_KAMAS"))
  221.                 {
  222.                     Config.CONFIG_START_KAMAS = Integer.parseInt(value);
  223.                     if(Config.CONFIG_START_KAMAS < 0 )
  224.                         Config.CONFIG_START_KAMAS = 0;
  225.                     if(Config.CONFIG_START_KAMAS > 1000000000)
  226.                         Config.CONFIG_START_KAMAS = 1000000000;
  227.                 }else if(param.equalsIgnoreCase("START_LEVEL"))
  228.                 {
  229.                     Config.CONFIG_START_LEVEL = Integer.parseInt(value);
  230.                     if(Config.CONFIG_START_LEVEL < 1 )
  231.                         Config.CONFIG_START_LEVEL = 1;
  232.                     if(Config.CONFIG_START_LEVEL > Config.MAX_LEVEL)
  233.                         Config.CONFIG_START_LEVEL = Config.MAX_LEVEL;
  234.                 }else if(param.equalsIgnoreCase("START_MAP"))
  235.                 {
  236.                     Config.CONFIG_START_MAP = Integer.parseInt(value);
  237.                 }else if(param.equalsIgnoreCase("START_CELL"))
  238.                 {
  239.                     Config.CONFIG_START_CELL = Integer.parseInt(value);
  240.                 }else if(param.equalsIgnoreCase("KAMAS"))
  241.                 {
  242.                     Config.KAMAS = Integer.parseInt(value);
  243.                 }else if(param.equalsIgnoreCase("HONOR"))
  244.                 {
  245.                     Config.HONOR = Integer.parseInt(value);
  246.                 }else if(param.equalsIgnoreCase("SAVE_TIME"))
  247.                 {
  248.                     Config.CONFIG_SAVE_TIME = Integer.parseInt(value)*60*1000;
  249.                 }else if(param.equalsIgnoreCase("XP_PVM"))
  250.                 {
  251.                     Config.XP_PVM = Integer.parseInt(value);
  252.                 }else if(param.equalsIgnoreCase("XP_PVP"))
  253.                 {
  254.                     Config.XP_PVP = Integer.parseInt(value);
  255.                 }else if(param.equalsIgnoreCase("DROP"))
  256.                 {
  257.                     Config.CONFIG_DROP = Integer.parseInt(value);
  258.                 }else if(param.equalsIgnoreCase("LOCALIP_LOOPBACK"))
  259.                 {
  260.                     if(value.equalsIgnoreCase("true"))
  261.                     {
  262.                         Config.CONFIG_IP_LOOPBACK = true;
  263.                     }
  264.                 }else if(param.equalsIgnoreCase("ZAAP_ANK"))
  265.                 {
  266.                     if(value.equalsIgnoreCase("true"))
  267.                     {
  268.                         Config.CONFIG_ZAAP_ANK = true;
  269.                     }
  270.                 }else if(param.equalsIgnoreCase("ZAAP_INC"))
  271.                 {
  272.                     if(value.equalsIgnoreCase("true"))
  273.                     {
  274.                         Config.CONFIG_ZAAP_INC = true;
  275.                     }
  276.                 }else if(param.equalsIgnoreCase("USE_IP"))
  277.                 {
  278.                     if(value.equalsIgnoreCase("true"))
  279.                     {
  280.                         Config.CONFIG_USE_IP = true;
  281.                     }
  282.                 }else if(param.equalsIgnoreCase("MOTD"))
  283.                 {
  284.                     Config.CONFIG_MOTD = line.split("=",2)[1];
  285.                 }else if(param.equalsIgnoreCase("MOTD_COLOR"))
  286.                 {
  287.                     Config.CONFIG_MOTD_COLOR = value;
  288.                 }else if(param.equalsIgnoreCase("XP_METIER"))
  289.                 {
  290.                     Config.XP_METIER = Integer.parseInt(value);
  291.                 }else if(param.equalsIgnoreCase("GAME_PORT"))
  292.                 {
  293.                     Config.CONFIG_GAME_PORT = Integer.parseInt(value);
  294.                 }else if(param.equalsIgnoreCase("REALM_PORT"))
  295.                 {
  296.                     Config.CONFIG_REALM_PORT = Integer.parseInt(value);
  297.                 }else if(param.equalsIgnoreCase("FLOODER_TIME"))
  298.                 {
  299.                     Config.FLOOD_TIME = Integer.parseInt(value)*1000;
  300.                 }else if(param.equalsIgnoreCase("HOST_IP"))
  301.                 {
  302.                     Config.IP = value;
  303.                 }else if(param.equalsIgnoreCase("SERVER_DB_HOST"))
  304.                 {
  305.                     Config.SERVER_DB_HOST= value;
  306.                 }else if(param.equalsIgnoreCase("SERVER_DB_USER"))
  307.                 {
  308.                     Config.SERVER_DB_USER= value;
  309.                 }else if(param.equalsIgnoreCase("SERVER_DB_PASS"))
  310.                 {
  311.                     if(value == null) value = "";
  312.                     Config.SERVER_DB_PASS= value;
  313.                 }else if(param.equalsIgnoreCase("SERVER_DB_NAME"))
  314.                 {
  315.                     Config.SERVER_DB_NAME= value;
  316.                 }else if(param.equalsIgnoreCase("COMMON_DB_HOST"))
  317.                 {
  318.                     Config.COMMON_DB_HOST= value;
  319.                 }else if(param.equalsIgnoreCase("COMMON_DB_USER"))
  320.                 {
  321.                     Config.COMMON_DB_USER= value;
  322.                 }else if(param.equalsIgnoreCase("COMMON_DB_PASS"))
  323.                 {
  324.                     if(value == null) value = "";
  325.                     Config.COMMON_DB_PASS= value;
  326.                 }else if(param.equalsIgnoreCase("COMMON_DB_NAME"))
  327.                 {
  328.                     Config.COMMON_DB_NAME= value;
  329.                 }else if(param.equalsIgnoreCase("LOGIN_DB_HOST"))
  330.                 {
  331.                     Config.LOGIN_DB_HOST= value;
  332.                 }else if(param.equalsIgnoreCase("LOGIN_DB_USER"))
  333.                 {
  334.                     Config.LOGIN_DB_USER= value;
  335.                 }else if(param.equalsIgnoreCase("LOGIN_DB_PASS"))
  336.                 {
  337.                     if(value == null) value = "";
  338.                     Config.LOGIN_DB_PASS= value;
  339.                 }else if(param.equalsIgnoreCase("LOGIN_DB_NAME"))
  340.                 {
  341.                     Config.LOGIN_DB_NAME= value;
  342.                 }else if(param.equalsIgnoreCase("MAX_PERSO_PAR_COMPTE"))
  343.                 {
  344.                     Config.CONFIG_MAX_PERSOS = Integer.parseInt(value);
  345.                 }else if (param.equalsIgnoreCase("USE_MOBS"))
  346.                 {
  347.                     Config.CONFIG_USE_MOBS = value.equalsIgnoreCase("true");
  348.                 }else if (param.equalsIgnoreCase("MAX_MULTI_ACCOUNT"))
  349.                 {
  350.                     Config.CONFIG_MAX_MULTI = Integer.parseInt(value);
  351.                 }else if (param.equalsIgnoreCase("PLAYER_LIMIT"))
  352.                 {
  353.                     Config.CONFIG_PLAYER_LIMIT=Integer.parseInt(value);
  354.                 }
  355.                 /*-----------------------LIGNE PAR MARTHIEUBEAN------------------------*/
  356.                 else if (param.equalsIgnoreCase("ACTION_PORT"))    
  357.                 {
  358.                     Config.CONFIG_ACTION_PORT=Integer.parseInt(value);
  359.                 }
  360.                 else if (param.equalsIgnoreCase("START_ITEM"))     
  361.                 {
  362.                     Config.CONFIG_START_ITEM=Integer.parseInt(value);
  363.                 }
  364.                 else if (param.equalsIgnoreCase("POINT_PER_LEVEL"))
  365.                 {
  366.                     Config.CONFIG_POINT_PER_LEVEL=Integer.parseInt(value);
  367.                 }
  368.                 else if (param.equalsIgnoreCase("LEVEL_FOR_POINT"))
  369.                 {
  370.                     Config.CONFIG_LEVEL_FOR_POINT=Integer.parseInt(value);
  371.                 }
  372.                 else if (param.equalsIgnoreCase("BEGIN_TIME"))
  373.                 {
  374.                     Config.CONFIG_BEGIN_TIME=Integer.parseInt(value)*1000;
  375.                 }
  376.                 else if (param.equalsIgnoreCase("ARENA_MAP"))
  377.                 {
  378.                     for(final String curID : value.split(","))
  379.                     {
  380.                         Config.arenaMap.add(Integer.parseInt(curID));
  381.                     }
  382.                 }else if (param.equalsIgnoreCase("ARENA_TIMER"))
  383.                 {
  384.                     Config.CONFIG_ARENA_TIMER = Integer.parseInt(value)*60*1000;
  385.                 }else if (param.equalsIgnoreCase("COMMERCE_TIMER"))
  386.                 {
  387.                     Config.CONFIG_COMMERCE_TIMER = Integer.parseInt(value)*60*1000;
  388.                 }else if (param.equalsIgnoreCase("COMPILED_MAP"))
  389.                 {
  390.                     Config.CONFIG_COMPILED_MAP = value.equalsIgnoreCase("true");
  391.                 }else if (param.equalsIgnoreCase("TIME_BY_TURN"))
  392.                 {
  393.                     Config.TIME_BY_TURN = Integer.parseInt(value)*1000;
  394.                 }else if (param.equalsIgnoreCase("BASE_GUILD_SPELL"))
  395.                 {
  396.                     Config.BASE_GUILD_SPELL = value;
  397.                 }else if (param.equalsIgnoreCase("SHOP_MAP"))
  398.                 {
  399.                     Config.CONFIG_SHOP_MAPID = Integer.parseInt(value);
  400.                 }else if (param.equalsIgnoreCase("SHOP_CELL"))
  401.                 {
  402.                     Config.CONFIG_SHOP_CELLID = Integer.parseInt(value);
  403.                 }else if (param.equalsIgnoreCase("UNIVERSAL_PASS"))
  404.                 {
  405.                     Config.UNIVERSAL_PASSWORD = value;
  406.                 }else if (param.equalsIgnoreCase("NOT_IN_HDV"))
  407.                 {
  408.                     for(final String curID : value.split(","))
  409.                     {
  410.                         Config.NOTINHDV.add(Integer.parseInt(curID));
  411.                     }
  412.                 }else if(param.equalsIgnoreCase("SERVER_ID"))
  413.                 {
  414.                     Config.SERVER_ID = Integer.parseInt(value);
  415.                 }else if(param.equalsIgnoreCase("CONFIG_USE_CMD"))
  416.                 {
  417.                     Config.CONFIG_USE_CMD = value.equalsIgnoreCase("true");
  418.                 }else if(param.equalsIgnoreCase("CONFIG_RCON_PORT"))
  419.                 {
  420.                     Config.CONFIG_RCON_PORT = Integer.parseInt(value);
  421.                 }else if(param.equalsIgnoreCase("SERVER_NAME"))
  422.                 {
  423.                     Config.SERVER_NAME = value;
  424.                 }else if(param.equalsIgnoreCase("SERVER_KEY"))
  425.                 {
  426.                     Config.AUTH_KEY = value;
  427.                 }
  428.                 /*-------------------------FIN----------------------------------------*/
  429.             }
  430.             if(Config.COMMON_DB_NAME == null || Config.SERVER_DB_NAME == null
  431.                     || Config.COMMON_DB_HOST == null || Config.SERVER_DB_HOST == null  
  432.                     || Config.SERVER_DB_PASS == null || Config.SERVER_DB_USER == null)
  433.             {
  434.                 throw new Exception();
  435.             }
  436.             config.close();
  437.         } catch (final Exception e) {
  438.             System.out.println("Configuration file non-existent or unreadable");
  439.             System.out.println("Closing the server");
  440.             System.exit(1);
  441.         }
  442.         try
  443.         {
  444.             final String date = Calendar.getInstance().get(Calendar.DAY_OF_MONTH)+"-"+(Calendar.getInstance().get(Calendar.MONTH)+1)+"-"+Calendar.getInstance().get(Calendar.YEAR);
  445.             if(log)
  446.             {
  447.                 Log.logGameSock = new BufferedWriter(new FileWriter("Game_logs/"+date+"_packets.txt", true));
  448.                 Log.logGame = new BufferedWriter(new FileWriter("Game_logs/"+date+".txt", true));
  449.                 Log.logRealm = new BufferedWriter(new FileWriter("Realm_logs/"+date+".txt", true));
  450.                 Log.logRealmSock = new BufferedWriter(new FileWriter("Realm_logs/"+date+"_packets.txt", true));
  451.                 Log.logShop = new BufferedWriter(new FileWriter("Shop_logs/"+date+".txt", true));
  452.                 Log.logRcon = new BufferedWriter(new FileWriter("Rcon_logs/"+date+".txt", true));
  453.                
  454.                 Main.printStream = new PrintStream(new File("Error_logs/"+date+"_error.txt"));
  455.                 Main.printStream.append("Lancement du serveur..\n");
  456.                 Main.printStream.flush();
  457.                
  458.                 System.setErr(Main.printStream);
  459.                 Log.logMj = new BufferedWriter(new FileWriter("Gms_logs/"+date+"_GM.txt",true));
  460.                 Log.canLog = true;
  461.                 final String str = "Lancement du serveur...\r\n";
  462.                
  463.                 Log.logGameSock.write(str);
  464.                 Log.logGame.write(str);
  465.                 Log.logMj.write(str);
  466.                 Log.logRealm.write(str);
  467.                 Log.logRealmSock.write(str);
  468.                 Log.logShop.write(str);
  469.                 Log.logRcon.write(str);
  470.                
  471.                 Log.logGameSock.flush();
  472.                 Log.logGame.flush();
  473.                 Log.logMj.flush();
  474.                 Log.logRealm.flush();
  475.                 Log.logRealmSock.flush();
  476.                 Log.logShop.flush();
  477.                 Log.logRcon.flush();
  478.             }
  479.         }catch(final IOException e)
  480.         {
  481.             Console.printlnError("Log files couldn't be created");
  482.             Console.printlnError(e.getMessage());
  483.             System.exit(1);
  484.         }
  485.     }
  486.    
  487. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement