Permalink
Browse files

removed duplicate info from the output of 'create-hibernate-cfg-xml' …

…command

bofore:

```
$ grails create-hibernate-cfg-xml
> hibernate.cfg.xml already exists. Overwrite? [y/n][y,n] y
| Created file grails-app/conf/hibernate/hibernate.cfg.xml
| Created /Users/yamkazu/Desktop/demo/grails-app/conf/hibernate/hibernate.cfg.xml
```

after:

```
$ grails create-hibernate-cfg-xml
> hibernate.cfg.xml already exists. Overwrite?[y,n] y
| Created file grails-app/conf/hibernate/hibernate.cfg.xml
```
  • Loading branch information...
1 parent fcda7f2 commit 8ae476e5047b7bdfbd8fc497239df7e083f43b1d @yamkazu yamkazu committed Aug 28, 2013
Showing with 1 addition and 2 deletions.
  1. +1 −2 scripts/CreateHibernateCfgXml.groovy
@@ -30,7 +30,7 @@ target (createHibernateCfgXml: 'Creates a hibernate.cfg.xml file') {
cfgFile = new File("$basedir/grails-app/conf/hibernate/hibernate.cfg.xml")
ant.mkdir dir: cfgFile.parent
- if (cfgFile.exists() && !confirmInput('hibernate.cfg.xml already exists. Overwrite? [y/n]', 'overwrite.hibernate_cfg_xml')) {
+ if (cfgFile.exists() && !confirmInput('hibernate.cfg.xml already exists. Overwrite?', 'overwrite.hibernate_cfg_xml')) {
return
}
@@ -51,7 +51,6 @@ target (createHibernateCfgXml: 'Creates a hibernate.cfg.xml file') {
copyGrailsResource cfgFile.path, templateFile
event 'CreatedFile', [cfgFile.path]
- grailsConsole.updateStatus "Created $cfgFile.path"
}
setDefaultTarget 'createHibernateCfgXml'

0 comments on commit 8ae476e

Please sign in to comment.