We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 05a8de9 commit c57c54cCopy full SHA for c57c54c
grails-bootstrap/src/main/groovy/grails/build/logging/GrailsConsole.java
@@ -196,6 +196,14 @@ protected Terminal createTerminal() {
196
*/
197
protected History prepareHistory() throws IOException {
198
File file = new File(System.getProperty("user.home"), HISTORYFILE);
199
+ if (!file.exists()) {
200
+ try {
201
+ file.createNewFile();
202
+ }
203
+ catch (IOException ignored) {
204
+ // can't create the file, so no history for you
205
206
207
return file.canWrite() ? new History(file) : null;
208
}
209
0 commit comments