Main entry point. @param __args Not used. @since 2018/03/29
(String... __args)
| 127 | * @since 2018/03/29 |
| 128 | */ |
| 129 | public static void main(String... __args) |
| 130 | throws IOException |
| 131 | { |
| 132 | TodoProgression tp = new TodoProgression(); |
| 133 | |
| 134 | // Read in inputs |
| 135 | try (BufferedReader br = new BufferedReader( |
| 136 | new InputStreamReader(System.in))) |
| 137 | { |
| 138 | String ln; |
| 139 | while (null != (ln = br.readLine())) |
| 140 | { |
| 141 | // Split forms |
| 142 | String[] fields = ln.split("[ \t]"); |
| 143 | |
| 144 | // Extract project name |
| 145 | String name = fields[1]; |
| 146 | int ls = name.lastIndexOf('/'); |
| 147 | if (ls >= 0) |
| 148 | name = name.substring(ls + 1); |
| 149 | |
| 150 | // Register data |
| 151 | tp.register(fields[0], name, UUID.fromString(fields[2]), |
| 152 | Integer.parseInt(fields[3])); |
| 153 | } |
| 154 | } |
| 155 | |
| 156 | // Write output |
| 157 | tp.write(System.out); |
| 158 | } |
| 159 | |
| 160 | /** |
| 161 | * Generates a hashcode from the UUID. |