saker.build Documentation TaskDoc JavaDoc Packages
public final class Main
Main entry point to the build system for command line usage.

This class contains the main(String...) entry point for the build system. It is to be called by the Java launcher (via command line) and should not be invoked programmatically.
Use invokeMain(String...) for a programmatic main function for the build system.

The build system doesn't ever call System.exit(int) by itself, so it is not expected to terminate the JVM. Only exception for this is the main(String...) function of this class.

Methods
public static void
Main method of the build system for programmatic access.
public static void
main(String... args)
The main method of the build system launcher.
public static void invokeMain(String... args) throws Throwable
Main method of the build system for programmatic access.

Clients that use the build system via a programmatic API, should call this method instead of main(String...).

The difference is that this method either finish successfully, or throw an exception if failed, instead of handling it in a way that is suitable for command line usage.

argsThe arguments.
ThrowableAn exception if the operation failed.
saker.build 0.8.16
public static void main(String... args)
The main method of the build system launcher.

The arguments will be parsed based on the command line interface of the build system, and the appropriate actions will be taken.

If the operation fails, the method will handle it in a way that displays failure information in a way that is suitable for command line usage. This usually means that the error stacktraces most likely won't be displayed, but rather a description of the error.

The method will call System.exit(int) with an appropriate exit code instead of throwing an exception.

argsThe command line arguments.