public static void main(String[] args) {
        System.out.println("Starting GWT Compiler in the background...");
        if (args != null) {
            System.out.println("GWT Compiler args: " + Arrays.stream(args).collect(Collectors.joining(" ")));
        }

        CompletableFuture<Void> future = CompletableFuture.runAsync(() -> Compiler.main(args));

        future.exceptionally(throwable -> {
            System.out.println("Error during GWT Compile: " + throwable.getMessage());
            throwable.printStackTrace();
            return null;
        });

        Instant startTime = Instant.now();
        while (!future.isDone()) {
            doSleep(TIME_BETWEEN_CONSOLE_OUTPUT_MS);
            Duration duration = Duration.between(startTime, Instant.now());
            System.out.println(String.format("GWT Compile still running... (Duration: %s)", duration));
        }

        if (future.isCompletedExceptionally()) {
            System.exit(1);
        }
        System.exit(0);

    }
Simple wrapper script to run the GWT compiler in the background while outputting something to standard out
every 20s. This is intended for use to prevent travis-ci from timing out during the compilation step
of the build
stroom-gwt/src/main/java/stroom/gwt/GwtCompilerWrapper.java