Main program @param args
(String[] args)
| 160 | * @param args |
| 161 | */ |
| 162 | public static void main(String[] args) { |
| 163 | logger.info("-- START --"); |
| 164 | if (args.length == 0) { |
| 165 | logger.error("No config file"); |
| 166 | exit(-1); |
| 167 | } |
| 168 | |
| 169 | File config = new File(args[0]); |
| 170 | try { |
| 171 | prop.load(new FileInputStream(config)); |
| 172 | } catch (IOException ex) { |
| 173 | logger.error("I/O Exception while reading {}", config, ex); |
| 174 | exit(-2); |
| 175 | } |
| 176 | |
| 177 | parse(); |
| 178 | |
| 179 | exit(0); |
| 180 | } |
| 181 | } |