link:fragment_01.txt[role=include]
Last active
August 29, 2015 14:02
-
-
Save gregturn/726b6dea0a4b86c06ac1 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| spring run `dirname $0`/bootconsole.groovy |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class CleanUpBootConsoleOutput implements CommandLineRunner { | |
| void run(String[] args) { | |
| println "[[Remove the stuff above]]" | |
| System.in.eachLine() { line -> | |
| def m = line =~ /([0-9]{4}-[0-9]{2}-[0-9]{2} [0-9]{2}:[0-9]{2}:[0-9\.]+) (.+) (: .+)/ | |
| if (m) { | |
| def revised = "${m[0][1]} ... ${m[0][3]}" | |
| if (revised.size() > 80) { | |
| println "${revised[0..77]}..." | |
| } else { | |
| println revised | |
| } | |
| } else { | |
| if (line.size() > 80) { | |
| println "${line[0..77]}..." | |
| } else { | |
| println line | |
| } | |
| } | |
| } | |
| println "[[Remove the stuff below]]" | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| zip bootconsole-filter-0.1.0.zip bootconsole bootconsole.groovy |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ GITHUB_TOKEN=ccdbf257f052a594a0e7bd2823a69ae38a48ffb1 mvn clean spring-boot:run | |
| [INFO] Scanning for projects... | |
| [INFO] | |
| [INFO] ------------------------------------------------------------------------ | |
| [INFO] Building Issue Manager 0.0.1-SNAPSHOT | |
| [INFO] ------------------------------------------------------------------------ | |
| ... | |
| . ____ _ __ _ _ | |
| /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \ | |
| ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \ | |
| \\/ ___)| |_)| | | | | || (_| | ) ) ) ) | |
| ' |____| .__|_| |_|_| |_\__, | / / / / | |
| =========|_|==============|___/=/_/_/_/ | |
| :: Spring Boot :: (v1.1.1.RELEASE) | |
| 2014-06-11 16:55:13.685 INFO 54449 --- [ main] learningspringboot.Application : Starting Application on retina with PID 54449 (/Users/gturnquist/Dropbox/learning_spring_boot/2/issue-manager-3/target/classes started by gturnquist in /Users/gturnquist/Dropbox/learning_spring_boot/2/issue-manager-3) | |
| ... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ asciidoc --filter bootconsole 3021OS_02_1stDraft.adoc | |
| asciidoc: WARNING: 3021OS_02_1stDraft.adoc: line 474: missing style: [blockdef-listing]: bootconsole |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment