Created
July 3, 2012 15:14
-
-
Save therealmitchconnors/3040359 to your computer and use it in GitHub Desktop.
Sublime Build file for grails.
This file contains 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
{ | |
"cmd": ["grails", "compile"], | |
"working_dir": "${project_path}", | |
"file_regex": "^([^:\\n]+): (\\d+): (?=[^\\n]+\\n?\\W\\@ line \\d+, column (\\d+)\\.$)([^\\n]+)\\n? \\@", | |
"selector": "source.groovy", | |
"variants": [ | |
{ | |
"cmd": ["grails", "test-app", "$file_base_name"], | |
"name": "Run", | |
"file_regex": "(?=Failure: .+\\n\\|.*(?:\\n.*)*?\\s+at com\\.progauge\\.icp.com.+\\((.+\\..+):(\\d+)\\))()Failure: .+\\n\\|\\s*(.*)" | |
}, | |
{ | |
"cmd": ["grails", "clean"], | |
"name": "Clean" | |
}, | |
{ | |
"cmd": ["grails", "test-app"], | |
"name": "Run All Tests" | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This build file allows a user with a sublime project located in their grails project root folder to build (Ctrl+B), test (Ctrl+Shift+B), and clean (Ctrl+Shift+P - Build: Clean) their grails projects from within sublime text. Build errors are parsed for the Build command, and can be navigated with F4 and Shift+F4. Test Errors are currently not parsed properly, as the grails output does not include the full file path to the offending file. Ctrl+Shift+B runs tests only for the file that currently has the focus. To run all tests in a project, open the command pallette (Ctrl+Shift+P) and select Buidl: Run All Tests.