protected void waitForUserInput()

in src/main/java/org/apache/sling/maven/feature/launcher/StopMojo.java [100:109]


    protected void waitForUserInput() throws MojoFailureException {
        // http://stackoverflow.com/a/21977269/5155923
        try {
            String message = MessageUtils.buffer().warning("Waiting for user input before build continues...").toString();
            getLog().warn(message);
            prompter.prompt("Press Enter to continue");
        } catch (PrompterException e) {
            throw new MojoFailureException("Could not prompt for user input. Do not use parameter 'waitForInput' in that case", e);
        }
    }