Main entry point for the new bootstrap system. @param __args Program arguments. @throws IOException On any read/write errors. @since 2016/10/26
(String... __args)
| 365 | * @since 2016/10/26 |
| 366 | */ |
| 367 | public static void main(String... __args) |
| 368 | throws IOException |
| 369 | { |
| 370 | // Compiling under JamVM fails because it cannot find a resource |
| 371 | // bundle for the Java compiler |
| 372 | if (__args != null && __args.length >= 1 && |
| 373 | "--toolsflaw".equals(__args[0])) |
| 374 | { |
| 375 | __detectToolsFlaw(); |
| 376 | return; |
| 377 | } |
| 378 | |
| 379 | // Get directories for input and output |
| 380 | Path bin = Paths.get(System.getProperty( |
| 381 | "cc.squirreljme.bootstrap.binary")), |
| 382 | src = Paths |
| 383 | .get(System.getProperty( |
| 384 | "cc.squirreljme.builder.root")); |
| 385 | |
| 386 | // Only build? |
| 387 | NewBootstrap nb = new NewBootstrap(bin, src, __args); |
| 388 | |
| 389 | // Run it |
| 390 | nb.run(); |
| 391 | } |
| 392 | |
| 393 | /** |
| 394 | * Lowercases the specified string. |
nothing calls this directly
no test coverage detected